/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 500px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    text-align: center;
}

.btn:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    padding: 8px 15px;
    width: auto;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Message boxes */
.message-box {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.message-box.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-box.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.error-text {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}

/* CAPTCHA styles */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.captcha-container img {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.captcha-input {
    width: 120px !important;
}

/* Links */
.link {
    display: inline-block;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Text center */
.text-center {
    text-align: center;
}

.mt-15 {
    margin-top: 15px;
}

.mb-15 {
    margin-bottom: 15px;
}

/* Verification success specific */
.verified-icon {
    font-size: 48px;
    text-align: center;
    display: block;
    margin-bottom: 15px;
}

/* Base flash message layout + default green fallback */
.flash-message {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-sizing: border-box;
    overflow: hidden;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    animation: fadeOut 0.6s ease-in-out 3s forwards;
}

/* Modifier class for informational / logout alerts */
.flash-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Keyframe animation for smooth CSS fade */
@keyframes fadeOut {
    0% {
        opacity: 1;
        max-height: 100px;
        margin-bottom: 20px;
        padding: 12px 20px;
    }
    100% {
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
        padding: 0;
        border: 0;
        visibility: hidden;
    }
}