/* Alert Messages */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: var(--white);
    padding: 15px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 5px solid #2196F3;
    transition: var(--transition);
}

.alert-success { border-left-color: #4CAF50; }
.alert-error { border-left-color: #f44336; }
.alert-info { border-left-color: #2196F3; }

.alert span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

.close-alert {
    cursor: pointer;
    font-size: 18px;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-alert:hover {
    color: var(--primary-blue);
}

:root {
    --primary-blue: #0056b3;
    --primary-gradient: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --bg-light: #f8f9fa;
    --text-main: #333;
    --text-muted: #666;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --input-bg: #f4f7f9;
    --radius: 12px;
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("../images/background.bc980bfe2726.png") no-repeat center center fixed;
    background-size: cover;
    padding: 40px 20px;
    overflow-x: hidden;
}

.auth-wrapper {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 700px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Visual Side */
.auth-visual {
    flex: 1.2;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9) 0%, rgba(0, 45, 91, 0.9) 100%), url("../images/background.bc980bfe2726.png") no-repeat center center;
    background-size: cover;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.visual-content {
    position: relative;
    z-index: 2;
}

.visual-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.visual-content h3 {
    font-size: 20px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 25px;
}

.visual-content p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 320px;
}

/* Decorative Blobs */
.blob {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(1px);
}

.blob-1 { width: 300px; height: 300px; top: -100px; left: -100px; }
.blob-2 { width: 200px; height: 200px; bottom: -50px; right: -50px; }
.blob-3 { 
    width: 250px; 
    height: 250px; 
    bottom: 50px; 
    left: -50px; 
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
}

/* Form Side */
.auth-form-side {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
}

.form-header {
    margin-bottom: 35px;
}

.form-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-container {
    display: none;
    width: 100%;
}

.auth-container.active {
    display: block;
}

/* Form Elements */
.form-group {
    margin-bottom: 22px;
    position: relative;
}

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

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background-color: var(--input-bg);
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus {
    background-color: var(--white);
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

/* Eye Toggle Customization */
.eye-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    display: none;
    padding: 5px;
}

/* Flex Group (Remember Me & Forgot Pass) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
}

.remember-me input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-pass {
    color: var(--text-muted);
    font-weight: 500;
}

.forgot-pass:hover {
    color: var(--primary-blue);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 15px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: #002d5b; /* Darker navy from reference */
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 45, 91, 0.2);
}

.btn-primary:hover {
    background: #003d7c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 45, 91, 0.3);
}

.btn-outline {
    background: var(--white);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-light);
}

.btn-google img {
    width: 20px;
}

.divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
    color: var(--text-muted);
    font-size: 12px;
}

.divider::before, .divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border-color);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.form-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-wrapper {
        flex-direction: column;
        max-width: 600px;
        min-height: auto;
        margin: 40px 0;
    }
    .auth-visual {
        padding: 50px 40px;
        min-height: 350px;
    }
    .visual-content h2 { font-size: 32px; }
    .auth-form-side { 
        padding: 50px 40px; 
        justify-content: flex-start;
    }
}

@media (max-width: 500px) {
    body { 
        padding: 0; 
        align-items: flex-start;
    }
    .auth-wrapper { 
        border-radius: 0; 
        min-height: 100vh; 
        height: auto;
        max-width: 100%; 
        margin: 0;
    }
    .auth-visual { 
        min-height: 300px;
        padding: 40px 30px;
    }
    .visual-content h2 { font-size: 28px; }
    .auth-form-side { 
        padding: 40px 25px; 
        justify-content: flex-start;
    }
}
