/* Simple Modern Login CSS */

.signin-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.login-header .logo-img {
    max-width: 180px;
    height: auto;
}

.login-subtitle {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.6rem;
    margin-bottom: 1.2rem;
}

/* Form Styles */
.login-form {
    margin-bottom: 1.2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2bc800 !important;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    background: white;
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: #2bc800;
    box-shadow: 0 0 0 3px rgba(43, 200, 0, 0.1);
}

/* Ensure label stays green when input is focused */
.form-group:focus-within .form-label {
    color: #2bc800 !important;
}

.form-control::placeholder {
    color: #999;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: #2bc800;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 0.8rem;
}

.submit-btn:hover {
    background: #229a00;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Forgot Password Link */
.forgot-link {
    color: #2bc800;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
    color: #229a00;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-danger {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
}

/* QR Code Styles */
.qr-code-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.qr-code-container p {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.qr-code {
    display: inline-block;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

/* Loading State */
.submit-btn.loading {
    position: relative;
    color: white !important;
    background: #229a00 !important;
    cursor: not-allowed;
}

.submit-btn.loading .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Enhanced loading animation */
.submit-btn.loading {
    background: linear-gradient(45deg, #2bc800, #229a00, #1e8700, #2bc800) !important;
    background-size: 300% 300%;
    animation: gradientShift 2s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Microsoft SSO Styling - Override package styles */
.microsoft-login-btn {
    background: white !important;
    border: 2px solid #e1e5e9 !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    margin: 0 auto !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.microsoft-login-btn:hover {
    border-color: #2bc800 !important;
    background: #f0fff0 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(43, 200, 0, 0.15) !important;
}

.microsoft-login-btn a {
    text-decoration: none !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.microsoft-btn-logo {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 24px !important;
    width: 24px !important;
    margin-right: 10px !important;
}

.microsoft-btn-logo img {
    height: 20px !important;
    width: 20px !important;
}

.microsoft-btn-label {
    color: #5e5e5e !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
    text-align: center !important;
}

.microsoft-login-btn:hover .microsoft-btn-label {
    color: #2bc800 !important;
}

.login-btn-area {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Fallback for other links */
.text-center a:not(.microsoft-login-btn):not(.microsoft-login-btn a) {
    color: #2bc800;
    text-decoration: none;
}

.text-center a:not(.microsoft-login-btn):not(.microsoft-login-btn a):hover {
    text-decoration: underline;
}

/* Social Media Icons in Form */
.social-media-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #f0f0f0;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #dee2e6;
}

.social-icon.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-icon.x-twitter:hover {
    background: #000000;
    color: white;
    border-color: #000000;
}

.social-icon.x-twitter svg {
    width: 14px;
    height: 14px;
}

.social-icon.linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
    border-color: #e6683c;
}

.social-icon.youtube:hover {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
}

/* Dark mode adjustments for package styles */
@media (prefers-color-scheme: dark) {
    .microsoft-login-btn {
        background: white !important;
        border: 2px solid #e1e5e9 !important;
    }
    
    .microsoft-btn-label {
        color: #5e5e5e !important;
    }
    
    .microsoft-login-btn:hover .microsoft-btn-label {
        color: #2bc800 !important;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .signin-container {
        padding: 0 10px;
    }
    
    .login-header .logo-img {
        max-width: 160px;
    }
    
    .login-subtitle {
        font-size: 0.8rem;
    }
    
    .form-control,
    .submit-btn {
        padding: 11px 14px;
    }
    
    .microsoft-login-btn {
        padding: 9px 14px !important;
    }
    
    .microsoft-btn-label {
        font-size: 0.85rem !important;
    }
    
    .social-media-icons {
        gap: 10px;
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .social-icon {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .signin-container {
        padding: 0;
        max-width: 100%;
    }
    
    .login-header .logo-img {
        max-width: 160px;
    }
    
    .login-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .form-control,
    .submit-btn {
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    .microsoft-login-btn {
        padding: 12px 16px !important;
    }
    
    .microsoft-btn-label {
        font-size: 0.95rem !important;
    }
    
    .social-media-icons {
        gap: 15px;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
} 