/* Form message styling */
.form-message {
    display: none;
    margin: 25px 0 40px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.form-message:not(:empty) {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.form-message.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translateX(-1px);
    }
    20%, 80% {
        transform: translateX(2px);
    }
    30%, 50%, 70% {
        transform: translateX(-4px);
    }
    40%, 60% {
        transform: translateX(4px);
    }
}

.form-message.info {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

.form-message.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

/* Verification form styling */
.verification-form {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: var(--surface-1);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.verification-title {
    color: var(--text-1);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.verification-text {
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    text-align: center;
}

.verification-code-input {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.verification-code-input input {
    width: 40px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: var(--surface-2);
    color: var(--text-1);
}

.verification-code-input input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-transparent);
}

.resend-code {
    text-align: center;
    margin-top: 15px;
}

.resend-code button {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 5px 10px;
}

.resend-code button:hover {
    color: var(--primary-hover);
}

/* Verification form styling */
.verification-form {
    text-align: center;
    padding: 30px;
}

.verification-form h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.verification-form p {
    margin-bottom: 25px;
    color: var(--text-light-muted);
}

#verification-code {
    font-size: 24px;
    letter-spacing: 8px;
    text-align: center;
}

.resend-link {
    margin-top: 15px;
    font-size: 14px;
}

.resend-link a {
    color: var(--grad-new-start);
    text-decoration: none;
}

.resend-link a:hover {
    text-decoration: underline;
}