/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #3c4043;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 50px; /* Add padding to account for fixed notification */
}

/* Notification Banner */
.notification-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #1a73e8;
    color: white;
    padding: 12px 20px;
    display: none; /* Initially hidden */
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    color: #ffffff;
    font-size: 18px;
}

.close-notification {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.close-notification:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Adjust container for fixed notification */
.container {
    margin-top: 0;
}

.container {
    max-width: 448px;
    margin: 0 auto;
    padding: 24px 16px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 18px;
}

.google-wordmark {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.25px;
    font-family: Arial, Helvetica, sans-serif;
}

.g-blue { color: #4285f4; }
.g-red { color: #ea4335; }
.g-yellow { color: #fbbc05; }
.g-green { color: #34a853; }

.card-header {
    text-align: center;
    margin-bottom: 22px;
}

.card-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.333;
    color: #202124;
}

.card-subtitle {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #202124;
}

/* Login Box */
.login-box {
    background-color: white;
    border-radius: 8px;
    padding: 40px 40px 36px;
    box-shadow: none;
    margin-bottom: 20px;
    border: 1px solid #dadce0;
}

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

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 16px;
    background-color: #ffffff;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
    height: 54px;
    color: #202124;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 1px #1a73e8;
}

.show-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    font-size: 14px;
    padding: 8px;
}

.show-password:hover {
    color: #202124;
}

/* Buttons */
.login-button {
    width: auto;
    padding: 0 24px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    margin-top: 0;
    height: 36px;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
    text-transform: none;
    letter-spacing: 0;
}

.login-button:hover {
    background-color: #1765cc;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.login-google {
    width: 100%;
    padding: 0 16px;
    background-color: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.login-google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.login-google i {
    margin-right: 8px;
    font-size: 18px;
    color: #4285f4;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0 14px;
    color: #5f6368;
    font-size: 12px;
    font-weight: 400;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #dadce0;
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

/* Forgot Password */
.forgot-password {
    text-align: left;
    margin: 8px 0 4px;
}

.forgot-password a {
    color: #1a73e8;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.forgot-password a:hover {
    background: rgba(26, 115, 232, 0.08);
    border-radius: 4px;
}

.forgot-password a,
.create-account {
    display: inline-block;
    padding: 6px 8px;
    margin-left: -8px;
}

.form-actions {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.create-account {
    color: #1a73e8;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.create-account:hover {
    background: rgba(26, 115, 232, 0.08);
    border-radius: 4px;
}

/* Sign Up Box */
.signup-box {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #dadce0;
}

.signup-box p {
    margin: 0;
    font-size: 14px;
    color: #3c4043;
}

.signup-box a {
    color: #1a73e8;
    font-weight: 500;
    text-decoration: none;
}

/* Download App */
.download-app {
    text-align: center;
    margin: 30px 0;
}

.download-app p {
    margin-bottom: 15px;
    font-size: 14px;
    color: #5f6368;
    font-weight: 500;
}

.app-stores {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* App Store Button */
.app-store-btn,
.google-play-btn {
    display: flex;
    align-items: center;
    background: #000;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    padding: 8px 15px 8px 10px;
    transition: transform 0.2s, background-color 0.2s;
    border: 1px solid #000;
    min-width: 180px;
}

.app-store-btn:hover,
.google-play-btn:hover {
    transform: translateY(-2px);
    background-color: #333;
}

.app-store-icon,
.google-play-icon {
    font-size: 24px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.app-store-text,
.google-play-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
}

.small-text {
    font-size: 10px;
    font-weight: 400;
}

.large-text {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* Google Play specific styles */
.google-play-btn {
    background: #fff;
    color: #000;
}

.google-play-icon {
    color: #00c853;
}

.google-play-btn .small-text {
    font-size: 9px;
    letter-spacing: 0.5px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-screen.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f8f9fa;
    border-top: 5px solid #1a73e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Responsive adjustments */
@media (max-width: 400px) {
    .app-store-btn,
    .google-play-btn {
        min-width: 160px;
        padding: 6px 12px 6px 8px;
    }
    
    .app-store-icon,
    .google-play-icon {
        font-size: 20px;
        margin-right: 8px;
    }
    
    .large-text {
        font-size: 14px;
    }
    
    .small-text {
        font-size: 9px;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #5f6368;
    font-size: 12px;
    margin: 0 5px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    color: #5f6368;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 450px) {
    .container {
        padding: 10px;
    }
    
    .login-box {
        padding: 20px;
    }
    
    .logo i {
        font-size: 50px;
    }
    
    .logo h1 {
        font-size: 30px;
    }
}
