/**
 * Authentication Pages Styling - Updated for Orange Identity
 * Matches the Professional Sidebar Pattern
 */

:root {
    --auth-primary: #FF814E;
    --auth-primary-dark: #e66a3a;
    --auth-primary-light: #ff9e75;
    --auth-accent: #6e707e;
    --auth-grey: #6e707e;
    --auth-grey-dark: #3a3b45;
    --auth-grey-light: #858796;
    --auth-bg-start: #6e707e;
    --auth-bg-end: #3a3b45;
    --auth-card-bg: rgba(255, 255, 255, 0.98);
    --auth-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    --auth-input-border: #d1d3e2;
    --auth-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Background - Matching accordionSidebar Pattern */
.auth-page {
    min-height: 100vh;
    background-color: var(--auth-bg-start);
    /* Diagonal pattern similar to sidebar gradients but with professional grey */
    background-image: linear-gradient(180deg, var(--auth-bg-start) 10%, var(--auth-bg-end) 100%);
    background-size: cover;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

/* Split Layout Wrapper */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Info Side (Identity) */
.auth-info-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-info-content {
    text-align: center;
    max-width: 500px;
}

.auth-info-logo {
    max-height: 100px;
    margin-bottom: 2.5rem;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
    transition: transform 0.5s ease;
}

.auth-info-logo:hover {
    transform: scale(1.05);
}

.auth-info-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.auth-info-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Form Side */
.auth-form-side {
    width: 550px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    position: relative;
    z-index: 2;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

/* Subtle Mask Pattern */
.auth-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Floating Shapes Animation - Subtle */
.auth-page::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(40px, -40px) rotate(10deg); }
}

/* Component Overrides for Full Screen */
.auth-body {
    padding: 0;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--auth-grey-dark);
    margin-bottom: 0.5rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-subtitle {
    font-size: 0.85rem;
    color: var(--auth-grey-light);
    text-align: left;
    margin-bottom: 2.5rem;
}

/* Form Groups */
.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--auth-grey-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 0.9rem;
    color: var(--auth-grey-dark);
    background-color: #fff;
    border: 1px solid var(--auth-input-border);
    border-radius: 10rem;
    transition: var(--auth-transition);
    outline: none;
}

.auth-input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 129, 78, 0.25);
}

.form-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-grey-light);
    transition: var(--auth-transition);
}

.auth-input:focus + .form-icon {
    color: var(--auth-primary);
}

/* Options */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--auth-grey-light);
}

.auth-forgot {
    font-size: 0.8rem;
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-forgot:hover {
    text-decoration: underline;
}

/* Button */
.auth-btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--auth-primary);
    border: none;
    border-radius: 10rem;
    cursor: pointer;
    transition: var(--auth-transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-btn:hover {
    background-color: var(--auth-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 129, 78, 0.4);
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eaecf4;
}

.auth-footer-text {
    font-size: 0.8rem;
    color: var(--auth-grey-light);
}

.auth-footer-link {
    color: var(--auth-primary);
    font-weight: 700;
    text-decoration: none;
}

/* Icons & Helpers */
.auth-icon-circle {
    width: 70px;
    height: 70px;
    background-color: var(--auth-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .auth-info-side {
        display: none;
    }
    
    .auth-form-side {
        width: 100%;
        background: transparent;
        box-shadow: none;
    }
    
    .auth-form-container {
        background: #fff;
        padding: 3rem 2rem;
        border-radius: 1rem;
        box-shadow: 0 1rem 3rem rgba(0,0,0,0.175);
        border-top: 5px solid var(--auth-primary);
    }

    .auth-title, .auth-subtitle {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .auth-form-side {
        padding: 1rem;
    }
    
    .auth-form-container {
        padding: 2rem 1.5rem;
    }
}
