/* --- Basic Reset & Font --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden; /* Prevent scrollbars */
}

/* --- Responsive Background Image --- */
.bg-container {
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    display: flex;
    justify-content: center;
    align-items: center;

    /* MOBILE-FIRST: Set the mobile image by default */
    background-image: url('../img/mobile-bg.jpg');
}

/* DESKTOP: Switch to the desktop image on screens wider than 768px */
@media (min-width: 768px) {
    .bg-container {
        background-image: url('../img/desktop-bg.jpg');
    }
}

/* --- Common Card Styling (for Login, Signup, Forgot Password) --- */
.card {
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    margin: 20px;
    
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* For Safari */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    color: white;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.card h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 600;
}

.card .subtitle {
     margin-bottom: 25px; 
     color: rgba(255, 255, 255, 0.8);
}

/* --- Social Login Buttons --- */
.social-login {
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between buttons */
    margin-bottom: 25px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* --- Divider (--- OR ---) --- */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.divider:not(:empty)::before {
    margin-right: .5em;
}

.divider:not(:empty)::after {
    margin-left: .5em;
}

/* --- Input Fields & Form --- */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-field {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-field:focus {
    border-color: #ffc107;
}

/* --- Submit Button --- */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: #ffc107;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: scale(1.03);
    background-color: #ffca2c;
}

.submit-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
    transform: scale(1);
}

/* --- Bottom Links --- */
.bottom-text {
    margin-top: 20px;
    font-size: 0.9rem;
}

.bottom-text a {
    color: #ffc107;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.bottom-text a:hover {
    text-decoration: underline;
}

/* --- Loader Animation --- */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ffc107;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    position: absolute;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}