﻿/* Base Styles - Orion Professional Design System */
 body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color:black;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Base link and button styles */
a, .btn-link {
    color: #006bb7;
}



.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Login Page Layout */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f1f3f8 0%, #e8ebf0 50%, #dde1e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

    .login-page::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 30%, rgba(26, 115, 232, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(26, 115, 232, 0.05) 0%, transparent 50%);
        pointer-events: none;
    }

.login-container {
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.login-row {
    background: white;
    padding: 3.5rem 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
}

    .login-row::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #1b6ec2 0%, #006bb7 50%, #1b6ec2 100%);
        border-radius: 12px 12px 0 0;
    }

/* Typography */
h1 {
    color: #1a1a1a;
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

    h1:focus {
        outline: none;
    }

h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 1.5rem 0;
}

h3 {
    color: #2c3e50;
    font-size: 1.375rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 2rem 0;
    letter-spacing: -0.01em;
}

/* Company Branding */
.company-branding {
    text-align: center;
    margin-bottom: 2.5rem;
}

.company-name {
    color: #1b6ec2;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.5px;
}

.company-tagline {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    margin-bottom: 2rem;
}

    .welcome-message p {
        color: #495057;
        font-size: 1.125rem;
        margin: 0;
        line-height: 1.4;
        font-weight: 400;
    }

/* External Login Section */
.external-login-section {
    width: 100%;
}

    .external-login-section hr {
        border: none;
        height: 1px;
        background: linear-gradient(90deg, transparent, #dee2e6, transparent);
        margin: 2rem 0;
    }

/* Professional Google Login Button */
.btn-google,
.external-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    padding: 1.125rem 2rem;
    border: 2px solid #e9ecf3;
    border-radius: 8px;
    background: white;
    color: #2c3e50;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.0625rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
}

    .btn-google::before,
    .external-login-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(26, 115, 232, 0.04), transparent);
        transition: left 0.5s ease;
    }

    .btn-google:hover,
    .external-login-button:hover {
        border-color: #1b6ec2;
        background: #fafbfc;
        color: #1b6ec2;
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 8px 24px rgba(27, 110, 194, 0.12), 0 4px 12px rgba(27, 110, 194, 0.08), 0 2px 6px rgba(27, 110, 194, 0.04);
    }

        .btn-google:hover::before,
        .external-login-button:hover::before {
            left: 100%;
        }

    .btn-google:focus,
    .external-login-button:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.3rem #258cfb, 0 8px 24px rgba(27, 110, 194, 0.12);
        outline: none;
        border-color: #1b6ec2;
    }

    .btn-google:active,
    .external-login-button:active {
        transform: translateY(1px);
        box-shadow: 0 2px 8px rgba(27, 110, 194, 0.16), 0 1px 4px rgba(27, 110, 194, 0.08);
    }

/* Premium Google Icon */
.google-icon {
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%2334A853' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%23EA4335' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3Cpath fill='none' d='M0 0h48v48H0z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-google:hover .google-icon,
.external-login-button:hover .google-icon {
    transform: scale(1.05);
}

/* Alert Styles */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    font-weight: 400;
}

    .alert p {
        margin: 0 0 0.5rem 0;
        line-height: 1.5;
    }

        .alert p:last-child {
            margin-bottom: 0;
        }

    .alert h2 {
        color: inherit;
        font-size: 1.25rem;
        margin-bottom: 1rem;
        text-align: left;
    }

.alert-success {
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e8 100%);
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #fef5f5 0%, #fce8e8 100%);
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #f0f8ff 0%, #e8f4fd 100%);
    border-color: #b0d4ff;
    color: #004085;
}

    .alert-info strong {
        font-weight: 600;
    }

/* Validation styles */
.validation-message {
    color: #e50000;
}

.text-danger {
    color: #e50000 !important;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

/* Additional Links */
.additional-links {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f2f5;
}

    .additional-links p {
        margin: 0 0 1rem 0;
        color: #495057;
        font-size: 0.9375rem;
        line-height: 1.5;
    }

        .additional-links p:last-child {
            margin-bottom: 0;
        }

    .additional-links a {
        color: #1b6ec2;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.2s ease;
        border-radius: 4px;
        padding: 2px 4px;
        margin: -2px -4px;
    }

        .additional-links a:hover {
            color: #006bb7;
            text-decoration: none;
            background-color: rgba(27, 110, 194, 0.08);
        }

        .additional-links a:focus {
            box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
            outline: none;
        }

.text-muted {
    color: #6c757d !important;
}

/* Premium Loading State */
.btn-google.loading,
.external-login-button.loading {
    position: relative;
    pointer-events: none;
    color: #6c757d;
    border-color: #e9ecf3;
    background: #f8f9fa;
}

    .btn-google.loading .google-icon,
    .external-login-button.loading .google-icon {
        opacity: 0.5;
    }

    .btn-google.loading::after,
    .external-login-button.loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        right: 1.5rem;
        border: 2px solid #e9ecf3;
        border-top-color: #1b6ec2;
        border-radius: 50%;
        animation: premium-loading-spinner 1s linear infinite;
    }

@keyframes premium-loading-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Security Badge */
.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: rgba(27, 110, 194, 0.04);
    border-radius: 6px;
    color: #495057;
    font-size: 0.875rem;
}

.security-icon {
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231b6ec2'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Responsive Design */
@media (max-width: 576px) {
    .login-page {
        padding: 1rem 0.75rem;
    }

    .login-row {
        padding: 2.5rem 2rem;
    }

    h1 {
        font-size: 1.875rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .btn-google,
    .external-login-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .google-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 380px) {
    .login-row {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 1.625rem;
    }

    .btn-google,
    .external-login-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .login-row {
        border: 3px solid #000;
    }

    .btn-google,
    .external-login-button {
        border: 2px solid #000;
    }

    .alert {
        border-width: 2px;
    }
}

/* Focus improvements for accessibility */
.btn-google:focus-visible,
.external-login-button:focus-visible {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.3rem #258cfb, 0 8px 24px rgba(27, 110, 194, 0.12);
    outline: 2px solid transparent;
}

.additional-links a:focus-visible {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    outline: 2px solid transparent;
}


/* Google Login Button - Simple & Professional */
.btn-google,
.external-login-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #4285f4;
    color: white;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    /* Hover state */
    .btn-google:hover,
    .external-login-button:hover {
        background-color: #3367d6;
        color: white;
        text-decoration: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        transform: translateY(-1px);
    }

    /* Focus state */
    .btn-google:focus,
    .external-login-button:focus {
        outline: none;
        box-shadow: 0 0 0 2px white, 0 0 0 4px #4285f4, 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    /* Active state */
    .btn-google:active,
    .external-login-button:active {
        background-color: #2d5aa0;
        transform: translateY(0);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

/* With Google icon */
.btn-google-with-icon,
.external-login-button-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.75rem 1.5rem;
    background-color: #4285f4;
    color: white;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Google icon for the button */
.google-icon-btn {
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFF' d='M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.btn-google-with-icon:hover,
.external-login-button-with-icon:hover {
    background-color: #3367d6;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-google-with-icon:focus,
.external-login-button-with-icon:focus {
    outline: none;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #4285f4, 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-google-with-icon:active,
.external-login-button-with-icon:active {
    background-color: #2d5aa0;
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Alternative white button with Google colors */
.btn-google-white {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: #757575;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #dadce0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

    .btn-google-white:hover {
        background-color: #f8f9fa;
        color: #3c4043;
        text-decoration: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
        border-color: #c1c7cd;
    }

    .btn-google-white:focus {
        outline: none;
        box-shadow: 0 0 0 2px white, 0 0 0 4px #4285f4, 0 2px 4px rgba(0, 0, 0, 0.15);
    }

    .btn-google-white:active {
        background-color: #f1f3f4;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

/* Google icon for white button */
.google-icon-color {
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%2334A853' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%23EA4335' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3Cpath fill='none' d='M0 0h48v48H0z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Loading state */
.btn-google.loading,
.external-login-button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

    .btn-google.loading::after,
    .external-login-button.loading::after {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top-color: white;
        border-radius: 50%;
        animation: google-btn-spin 0.8s linear infinite;
    }

@keyframes google-btn-spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .btn-google,
    .external-login-button,
    .btn-google-with-icon,
    .external-login-button-with-icon,
    .btn-google-white {
        width: 100%;
        min-width: auto;
        padding: 0.875rem 1.5rem;
    }
}