/* Authentication Pages Styling */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Global Box Sizing Rule */
*, *::before, *::after {
    box-sizing: border-box;
}

.auth-container {
    display: flex;
    min-height: 100vh;
    background-color: #f5f7fa;
}

.auth-left-panel {
    flex: 1;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-left-panel::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.auth-left-panel::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.auth-left-content {
    max-width: 500px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.auth-logo-large {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: -1px;
}

.auth-left-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.auth-left-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

.auth-illustration {
    margin-top: 50px;
}

.auth-illustration img {
    width: 60%;
    max-width: 250px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

.auth-right-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 35px 30px;
    border-radius: 20px;
    background-color: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    animation: fadeUp 0.6s ease-out;
}

.auth-logo {
    display: none;
}

.auth-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
    position: relative;
}

.auth-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 50px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f9fafc;
    box-sizing: border-box; /* Include padding in width calculation */
}

.input-with-icon input:focus {
    border-color: var(--primary-color);
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-btn span {
    margin-right: 10px;
}

.auth-btn i {
    transition: transform 0.3s ease;
}

.auth-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.auth-btn:hover i {
    transform: translateX(5px);
}

.auth-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.auth-switch {
    margin-top: 25px;
    text-align: center;
    font-size: 0.95rem;
    color: #666;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.auth-switch a:hover {
    border-bottom-color: var(--primary-color);
}

.auth-demo-accounts {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.auth-demo-accounts p {
    margin: 0 0 8px;
    text-align: center;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.auth-demo-accounts ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.auth-demo-accounts li {
    margin: 5px 0;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-left-panel {
        padding: 30px;
        min-height: 250px;
    }
    
    .auth-logo-large {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .auth-left-content h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .auth-left-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .auth-illustration {
        display: none;
    }
    
    .auth-logo {
        display: block;
        text-align: center;
        font-size: 2.4rem;
        font-weight: 700;
        color: var(--primary-color);
        margin-bottom: 15px;
        letter-spacing: -0.5px;
    }
}

@media (max-width: 576px) {
    .auth-card {
        width: 100%;
        padding: 25px 20px;
        margin: 0 15px;
    }
    
    .auth-right-panel {
        padding: 20px 10px;
    }
    
    .input-with-icon input {
        font-size: 14px;
    }
    
    .auth-title {
        font-size: 1.6rem;
    }
}
