/**
 * Login/Register Page Styles
 * Página customizada de cadastro/login seguindo padrões SOPRO
 *
 * @package Sopro_Theme
 * @since 1.0.0
 */

/* Container Principal */
.login-register-page .entry-content {
    margin: 0 auto;
    max-width: 64rem;
    padding: 2rem;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .login-register-page .entry-content {
        padding: 3rem;
    }
}

/* Auth Container - Two Column Layout */
.auth-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Auth Cards */
.auth-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid transparent;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    box-sizing: border-box;
}

.auth-card:hover {
    transform: translateY(-0.25rem);
    border-color: #FF6B35;  /* Primary */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.auth-card h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A1A1A;
    text-align: center;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4A5568;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #718096;
}

/* Input Fields */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #CBD5E0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #FF6B35;  /* Primary */
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #f87171;
}

/* Buttons */
.form-actions {
    margin-top: 1.5rem;
}

.login-register-page .btn-primary {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: #FF6B35;  /* Primary */
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-sizing: border-box;
}

.login-register-page .btn-primary:hover {
    background-color: #E65520;  /* Darker Primary */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.login-register-page .btn-primary:disabled {
    background-color: #CBD5E0;
    cursor: not-allowed;
    transform: none;
}

/* Forgot Password Link */
.forgot-password {
    display: block;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #FF6B35;  /* Primary */
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Message Container */
#message-container {
    margin-top: 2rem;
    border-radius: 0.5rem;
    padding: 1rem;
    display: none;
}

#message-container.message-success,
#message-container.message-error,
#message-container.message-loading {
    display: block;
}

.message-success {
    border: 1px solid #4ADE80;
    background-color: #DCFCE7;
    color: #15803D;
}

.message-error {
    border: 1px solid #F87171;
    background-color: #FEE2E2;
    color: #B91C1C;
}

.message-loading {
    border: 1px solid #60A5FA;
    background-color: #DBEAFE;
    color: #1D4ED8;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .auth-card {
        padding: 1.5rem;
    }

    .auth-card h2 {
        font-size: 1.25rem;
    }
}
