﻿/* ====== Timer Login Page Styles ======
 * Modern, futuristic login experience
 * Mobile-first with glassmorphism design
 */

/* === BASE STYLES === */
.timer-login-body {
    margin: 0;
    padding: 0;
    font-family: var(--timer-font-family);
    background: var(--timer-gray-900);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* === ANIMATED BACKGROUND === */
.timer-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.timer-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--timer-primary) 0%, var(--timer-teal) 25%, var(--timer-orange) 50%, var(--timer-primary) 75%, var(--timer-teal) 100%);
    opacity: 0.15;
    animation: timerGradientShift 20s ease-in-out infinite;
}

.timer-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 25% 25%, rgba(157, 62, 245, 0.1) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(78, 205, 196, 0.1) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    animation: timerPatternFloat 30s linear infinite;
}

.timer-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.timer-float-element {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 2rem;
    animation: timerFloatUp 20s linear infinite;
}

.timer-float-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.timer-float-2 {
    top: 20%;
    right: 15%;
    animation-delay: -5s;
    animation-duration: 30s;
}

.timer-float-3 {
    top: 60%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.timer-float-4 {
    bottom: 20%;
    right: 25%;
    animation-delay: -15s;
    animation-duration: 28s;
}

.timer-float-5 {
    top: 40%;
    left: 5%;
    animation-delay: -8s;
    animation-duration: 24s;
}

.timer-float-6 {
    bottom: 40%;
    right: 10%;
    animation-delay: -12s;
    animation-duration: 26s;
}

/* === MAIN CONTAINER === */
.timer-login-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--timer-space-8) var(--timer-space-4);
    gap: var(--timer-space-8);
}

/* === BRANDING SECTION === */
.timer-brand-section {
    text-align: center;
    animation: timerFadeInUp 1s ease-out;
}

.timer-logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: var(--timer-space-4);
}

.timer-logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 8px 32px rgba(157, 62, 245, 0.3));
    animation: timerLogoFloat 3s ease-in-out infinite;
}

.timer-logo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(157, 62, 245, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: timerLogoGlow 2s ease-in-out infinite alternate;
}

.timer-brand-title {
    font-size: var(--timer-font-size-5xl);
    font-weight: var(--timer-font-weight-extrabold);
    background: linear-gradient(135deg, var(--timer-primary), var(--timer-teal));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 var(--timer-space-2) 0;
    letter-spacing: -0.02em;
}

.timer-brand-tagline {
    font-size: var(--timer-font-size-lg);
    color: rgba(255, 255, 255, 0.7);
    font-weight: var(--timer-font-weight-normal);
    margin: 0;
}

/* === LOGIN CARD === */
.timer-login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--timer-radius-2xl);
    padding: var(--timer-space-8);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: timerScaleIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

    .timer-login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, rgba(157, 62, 245, 0.5) 50%, transparent 100%);
    }

/* === CARD HEADER === */
.timer-card-header {
    text-align: center;
    margin-bottom: var(--timer-space-6);
}

.timer-card-title {
    font-size: var(--timer-font-size-2xl);
    font-weight: var(--timer-font-weight-bold);
    color: var(--timer-gray-900);
    margin: 0 0 var(--timer-space-1) 0;
    line-height: var(--timer-line-height-tight);
}

.timer-card-subtitle {
    font-size: var(--timer-font-size-sm);
    color: var(--timer-gray-500);
    margin: 0;
}

/* === SOCIAL LOGIN === */
.timer-social-section {
    display: flex;
    flex-direction: column;
    gap: var(--timer-space-3);
    margin-bottom: var(--timer-space-6);
}

.timer-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--timer-space-3);
    padding: var(--timer-space-4);
    border: 1px solid var(--timer-gray-200);
    border-radius: var(--timer-radius-lg);
    background: var(--timer-white);
    color: var(--timer-gray-700);
    font-family: var(--timer-font-family);
    font-size: var(--timer-font-size-base);
    font-weight: var(--timer-font-weight-medium);
    cursor: pointer;
    transition: all var(--timer-transition-fast);
    text-decoration: none;
}

    .timer-social-btn:hover {
        background: var(--timer-gray-50);
        border-color: var(--timer-gray-300);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .timer-social-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

.timer-google-btn:hover {
    color: #ea4335;
    border-color: rgba(234, 67, 53, 0.3);
}

.timer-microsoft-btn:hover {
    color: #0078d4;
    border-color: rgba(0, 120, 212, 0.3);
}

/* === DIVIDER === */
.timer-divider {
    display: flex;
    align-items: center;
    gap: var(--timer-space-4);
    margin: var(--timer-space-5) 0;
}

    .timer-divider::before,
    .timer-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--timer-gray-200);
    }

.timer-divider-text {
    color: var(--timer-gray-500);
    font-size: var(--timer-font-size-sm);
    font-weight: var(--timer-font-weight-medium);
    white-space: nowrap;
}

/* === FORM STYLES === */
.timer-form-section {
    display: flex;
    flex-direction: column;
    gap: var(--timer-space-4);
}

.timer-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--timer-space-2);
}

.timer-form-label {
    font-size: var(--timer-font-size-sm);
    font-weight: var(--timer-font-weight-medium);
    color: var(--timer-gray-700);
    margin-bottom: var(--timer-space-1);
}

.timer-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--timer-space-1);
}

.timer-forgot-link {
    font-size: var(--timer-font-size-sm);
    color: var(--timer-primary);
    text-decoration: none;
    font-weight: var(--timer-font-weight-medium);
    transition: color var(--timer-transition-fast);
}

    .timer-forgot-link:hover {
        color: var(--timer-primary-dark);
    }

/* === INPUT STYLES === */
.timer-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.timer-input {
    width: 100%;
    padding: var(--timer-space-4);
    border: 1px solid var(--timer-gray-300);
    border-radius: var(--timer-radius-lg);
    font-family: var(--timer-font-family);
    font-size: var(--timer-font-size-base);
    background: var(--timer-white);
    transition: all var(--timer-transition-fast);
    box-sizing: border-box;
}

.timer-input-with-icon {
    padding-left: 48px;
    padding-right: 48px;
}

.timer-input:focus {
    outline: none;
    border-color: var(--timer-primary);
    box-shadow: 0 0 0 3px rgba(157, 62, 245, 0.1);
}

    .timer-input:focus + .timer-input-icon i {
        color: var(--timer-primary);
    }

.timer-input-icon {
    position: absolute;
    left: var(--timer-space-4);
    color: var(--timer-gray-400);
    font-size: var(--timer-font-size-base);
    transition: color var(--timer-transition-fast);
    z-index: 1;
}

.timer-password-toggle {
    position: absolute;
    right: var(--timer-space-4);
    background: none;
    border: none;
    color: var(--timer-gray-400);
    cursor: pointer;
    padding: var(--timer-space-1);
    border-radius: var(--timer-radius-md);
    transition: all var(--timer-transition-fast);
    z-index: 1;
}

    .timer-password-toggle:hover {
        color: var(--timer-gray-600);
        background: rgba(0, 0, 0, 0.05);
    }

/* === CHECKBOX STYLES === */
.timer-form-options {
    margin: var(--timer-space-1) 0;
}

.timer-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: var(--timer-space-3);
    cursor: pointer;
    user-select: none;
}

.timer-checkbox {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.timer-checkbox-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--timer-gray-300);
    border-radius: var(--timer-radius-md);
    background: var(--timer-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--timer-transition-fast);
    position: relative;
}

    .timer-checkbox-checkmark::after {
        content: '\f00c';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 12px;
        color: var(--timer-white);
        opacity: 0;
        transform: scale(0);
        transition: all var(--timer-transition-fast);
    }

.timer-checkbox:checked + .timer-checkbox-checkmark {
    background: var(--timer-primary);
    border-color: var(--timer-primary);
}

    .timer-checkbox:checked + .timer-checkbox-checkmark::after {
        opacity: 1;
        transform: scale(1);
    }

.timer-checkbox-label {
    font-size: var(--timer-font-size-sm);
    color: var(--timer-gray-600);
    font-weight: var(--timer-font-weight-normal);
}

/* === BUTTON STYLES === */
.timer-btn-login {
    height: 48px;
    padding: 0 var(--timer-space-6);
    font-size: var(--timer-font-size-base);
    font-weight: var(--timer-font-weight-semibold);
    letter-spacing: 0.025em;
    margin-top: var(--timer-space-2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: none;
    cursor: pointer;
    text-align: center;
}

    .timer-btn-login::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .timer-btn-login:hover::before {
        left: 100%;
    }

    .timer-btn-login:disabled {
        cursor: not-allowed;
        opacity: 0.8;
    }

.timer-btn-full {
    width: 100%;
}

/* === CARD FOOTER === */
.timer-card-footer {
    text-align: center;
    margin-top: var(--timer-space-6);
    padding-top: var(--timer-space-5);
    border-top: 1px solid var(--timer-gray-200);
}

.timer-signup-prompt {
    font-size: var(--timer-font-size-sm);
    color: var(--timer-gray-600);
    margin: 0;
}

.timer-signup-link {
    color: var(--timer-primary);
    text-decoration: none;
    font-weight: var(--timer-font-weight-semibold);
    transition: color var(--timer-transition-fast);
}

    .timer-signup-link:hover {
        color: var(--timer-primary-dark);
    }

.timer-help-links {
    display: flex;
    justify-content: center;
    gap: var(--timer-space-6);
}

.timer-help-link {
    display: flex;
    align-items: center;
    gap: var(--timer-space-2);
    font-size: var(--timer-font-size-sm);
    color: var(--timer-gray-500);
    text-decoration: none;
    transition: color var(--timer-transition-fast);
}

    .timer-help-link:hover {
        color: var(--timer-gray-700);
    }

/* === FOOTER === */
.timer-login-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    animation: timerFadeIn 1s ease-out 0.5s both;
}

.timer-footer-links {
    display: flex;
    justify-content: center;
    gap: var(--timer-space-4);
    margin-bottom: var(--timer-space-3);
}

    .timer-footer-links a {
        font-size: var(--timer-font-size-sm);
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
        transition: color var(--timer-transition-fast);
    }

        .timer-footer-links a:hover {
            color: rgba(255, 255, 255, 0.9);
        }

.timer-footer-text {
    font-size: var(--timer-font-size-xs);
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
}

/* === ERROR STATES === */
.timer-field-error {
    font-size: var(--timer-font-size-sm);
    color: var(--timer-error);
    margin-top: var(--timer-space-1);
    display: none;
    animation: timerSlideDown var(--timer-transition-fast);
}

    .timer-field-error.show {
        display: block;
    }

.timer-input.error {
    border-color: var(--timer-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* === LOADING OVERLAY === */
.timer-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

    .timer-loading-overlay.show {
        display: flex;
    }

.timer-loading-content {
    text-align: center;
    color: var(--timer-white);
}

.timer-loading-text {
    margin-top: var(--timer-space-4);
    font-size: var(--timer-font-size-base);
    font-weight: var(--timer-font-weight-medium);
}

/* === TOAST NOTIFICATIONS === */
.timer-toast-container {
    position: fixed;
    top: var(--timer-space-4);
    right: var(--timer-space-4);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: var(--timer-space-2);
}

/* === ANIMATIONS === */
@keyframes timerGradientShift {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

@keyframes timerPatternFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes timerFloatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.1;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes timerLogoFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes timerLogoGlow {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.6;
    }
}

@keyframes timerFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes timerScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes timerFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes timerSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE DESIGN === */

/* Large screens */
@media (min-width: 1024px) {
    .timer-login-container {
        flex-direction: row;
        align-items: center;
        gap: var(--timer-space-16);
        padding: var(--timer-space-12);
    }

    .timer-brand-section {
        flex: 1;
        text-align: left;
        max-width: 400px;
    }

    .timer-brand-title {
        font-size: 3.5rem;
    }

    .timer-brand-tagline {
        font-size: var(--timer-font-size-lg);
    }

    .timer-login-card {
        flex: 0 0 420px;
    }
}

/* Medium screens */
@media (min-width: 768px) and (max-width: 1023px) {
    .timer-login-container {
        padding: var(--timer-space-8) var(--timer-space-6);
    }

    .timer-login-card {
        max-width: 420px;
        padding: var(--timer-space-8);
    }
}

/* Small screens */
@media (max-width: 767px) {
    .timer-login-container {
        padding: var(--timer-space-6) var(--timer-space-4);
        gap: var(--timer-space-5);
    }

    .timer-login-card {
        padding: var(--timer-space-6);
    }

    .timer-brand-title {
        font-size: var(--timer-font-size-3xl);
    }

    .timer-card-title {
        font-size: var(--timer-font-size-xl);
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .timer-login-container {
        padding: var(--timer-space-4) var(--timer-space-3);
    }

    .timer-login-card {
        padding: var(--timer-space-5);
    }

    .timer-logo {
        width: 56px;
        height: 56px;
    }

    .timer-brand-title {
        font-size: var(--timer-font-size-2xl);
    }

    .google-login, #googleLoginButton {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .timer-login-card {
        border: 2px solid var(--timer-gray-300);
        background: var(--timer-white);
    }

    .timer-input:focus {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .timer-floating-elements {
        display: none;
    }
}


/* ADD THIS TO YOUR login.css FILE */

/* Google Login Button */
.google-login, #googleLoginButton {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #dadce0;
    border-radius: 25px;
    background: white;
    color: #3c4043;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

    .google-login:hover, #googleLoginButton:hover {
        background: #f8f9fa;
        border-color: #5f6368;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .google-login:active, #googleLoginButton:active {
        background: #e8eaed;
    }

    .google-login:disabled, #googleLoginButton:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    /* Google Logo in Button */
    .google-login svg, #googleLoginButton svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

/* Divider Styling */
.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

    .divider span {
        background: white;
        padding: 0 15px;
        color: #666;
        font-size: 14px;
        position: relative;
        z-index: 1;
    }

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #dadce0;
        z-index: 0;
    }