/* Super Login Styles - Bright & Fresh Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3a8dde;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(58, 141, 222, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 2s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: 3s;
}

.shape-5 {
    width: 40px;
    height: 40px;
    top: 40%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Login Container */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.85) !important;
    color: #232946 !important;
    border-radius: 1.3rem !important;
    box-shadow: 0 8px 32px 0 #cfdef3cc, 0 2px 8px 0 #3a8dde33 !important;
    border-left: 6px solid #3a8dde !important;
    backdrop-filter: blur(8px);
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    position: relative;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Header */
.card-header {
    background: linear-gradient(135deg, #3a8dde 0%, #2d6da3 100%);
    padding: 40px 30px 30px;
    text-align: center;
    color: white;
    position: relative;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.logo-section {
    position: relative;
    z-index: 1;
}

.logo-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: none;
    background: none;
    box-shadow: none;
    filter: none;
    border-radius: 0;
    padding: 0;
}

.logo-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 0;
    background: none;
}

.logo-icon svg {
    color: white;
}

.card-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    margin: 0;
}

/* Card Body */
.card-body {
    padding: 40px 30px;
}

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

.login-section {
    margin-bottom: 30px;
}

/* Google Login Button */
.google-login-btn {
    width: 100%;
    padding: 16px 24px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #333;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px #3a8dde33, 0 1px 4px #cfdef3;
}

.google-login-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 32px #3a8dde55, 0 2px 8px #cfdef3;
    border-color: #3a8dde;
}

.google-login-btn:active {
    transform: scale(1.02);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
    position: relative;
}

.google-login-btn img {
    width: 24px;
    height: 24px;
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(58, 141, 222, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.google-login-btn:active .btn-ripple {
    width: 300px;
    height: 300px;
}

.google-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Security Notice */
.security-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(58, 141, 222, 0.1);
    border-radius: 8px;
    border-left: 4px solid #3a8dde;
}

.security-icon {
    color: #3a8dde;
    flex-shrink: 0;
}

.security-notice span {
    font-size: 0.85rem;
    color: #495057;
    line-height: 1.4;
}

/* Role Switch Container */
.role-switch-container {
    margin-top: 30px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #6c757d;
    font-size: 0.9rem;
}

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

.divider span {
    padding: 0 16px;
}

.role-switch-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3a8dde;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.role-switch-link:hover {
    background: rgba(58, 141, 222, 0.1);
    border-color: rgba(58, 141, 222, 0.2);
    transform: translateY(-1px);
}

.role-switch-link svg {
    color: #3a8dde;
}

/* Error Message */
.error-message {
    display: none;
    background: #f8d7da;
    color: #721c24;
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
}

/* Card Footer */
.card-footer {
    padding: 20px 30px 30px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.back-link:hover {
    color: #3a8dde;
    background: rgba(58, 141, 222, 0.1);
}

.back-link svg {
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-2px);
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        border-radius: 16px;
        border-left-width: 3px !important;
        padding: 1.2rem !important;
    }
    
    .card-header {
        padding: 30px 20px 20px;
    }
    
    .card-header h1 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 30px 20px;
    }
    
    .welcome-text h2 {
        font-size: 1.5rem;
    }
    
    .google-login-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .logo-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .login-card {
        background: rgba(255, 255, 255, 0.85) !important;
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .welcome-text h2 {
        color: #232946;
    }
    
    .welcome-text p {
        color: #6c757d;
    }
    
    .google-login-btn {
        background: white;
        border-color: #e9ecef;
        color: #333;
    }
    
    .google-login-btn:hover {
        border-color: #3a8dde;
    }
    
    .security-notice {
        background: rgba(58, 141, 222, 0.1);
    }
    
    .security-notice span {
        color: #495057;
    }
    
    .divider {
        color: #6c757d;
    }
    
    .divider::before,
    .divider::after {
        border-color: #e9ecef;
    }
    
    .back-link {
        color: #6c757d;
    }
    
    .back-link:hover {
        color: #3a8dde;
        background: rgba(58, 141, 222, 0.1);
    }
} 