/* RepoLink Login Page Styles - Jira Atlassian Design */
/* Clean, professional login design following Jira Atlassian design system */

/* ============================================
   LOGIN PAGE BACKGROUND - JIRA STYLE WITH LAYOUT
   ============================================ */
.repolink-login-container {
    min-height: 100vh;
    background: #f4f5f7;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Noto Sans', 'Ubuntu', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Subtle grid pattern like Jira */
.repolink-login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(9, 30, 66, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(9, 30, 66, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

/* ============================================
   THREE-COLUMN LAYOUT
   ============================================ */
.repolink-login-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.repolink-login-left {
    flex: 1;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.repolink-login-center {
    flex: 0 0 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.repolink-login-right {
    flex: 1;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ============================================
   LOGIN CARD - JIRA STYLE
   ============================================ */
.repolink-login-card {
    position: relative;
    z-index: 100;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: #ffffff;
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 8px 0 rgba(9, 30, 66, 0.25);
    overflow: hidden;
    animation: loginCardFadeIn 0.5s ease-out;
}

@keyframes loginCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   LOGIN CARD HEADER - JIRA STYLE
   ============================================ */
.repolink-login-header {
    background: #ffffff;
    color: #172b4d;
    padding: 32px 40px 0;
    text-align: center;
    border-bottom: none;
}

.repolink-login-title {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #172b4d;
    line-height: 1.33333;
}

.repolink-login-title i {
    font-size: 24px;
    color: #0052cc;
}

.repolink-login-subtitle {
    margin: 0 0 32px;
    font-size: 14px;
    font-weight: 400;
    color: #6b778c;
    line-height: 1.42857;
}

/* ============================================
   LOGIN FORM BODY - JIRA STYLE
   ============================================ */
.repolink-login-body {
    padding: 0 40px 40px;
    background: #ffffff;
}

/* Form Groups */
.repolink-form-group {
    margin-bottom: 16px;
    position: relative;
}

.repolink-form-group:last-of-type {
    margin-bottom: 0;
}

/* Form Labels */
.repolink-form-label {
    display: block;
    font-weight: 600;
    color: #172b4d;
    margin-bottom: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.33333;
}

.repolink-form-label i {
    color: #6b778c;
    font-size: 12px;
    margin-right: 4px;
}

/* Form Controls */
.repolink-form-control {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #dfe1e6;
    border-radius: 3px;
    font-size: 14px;
    color: #172b4d;
    background: #fafbfc;
    transition: all 0.2s ease;
    line-height: 1.42857;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Noto Sans', 'Ubuntu', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

.repolink-form-control::placeholder {
    color: #6b778c;
}

.repolink-form-control:focus {
    outline: none;
    border-color: #0052cc;
    box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.2);
    background: #ffffff;
}

.repolink-form-control:hover:not(:focus) {
    border-color: #b3bac5;
    background: #ffffff;
}

/* Checkbox Styling - Jira Style */
.repolink-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
}

.repolink-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #0052cc;
    cursor: pointer;
    flex-shrink: 0;
}

.repolink-checkbox label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #172b4d;
    line-height: 1.42857;
    display: flex;
    align-items: center;
    gap: 4px;
}

.repolink-checkbox label i {
    color: #6b778c;
    font-size: 14px;
}

/* ============================================
   LOGIN BUTTON - JIRA STYLE
   ============================================ */
.repolink-login-btn {
    width: 100%;
    padding: 10px 12px;
    background: #0052cc;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.42857;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Noto Sans', 'Ubuntu', 'Droid Sans', 'Helvetica Neue', sans-serif;
    margin-top: 16px;
}

.repolink-login-btn:hover:not(:disabled) {
    background: #0747a6;
}

.repolink-login-btn:active:not(:disabled) {
    background: #003884;
}

.repolink-login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #b3bac5;
}

.repolink-login-btn i {
    font-size: 14px;
}

/* Loading state */
.repolink-login-btn .bi-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   LOGIN FOOTER - JIRA STYLE
   ============================================ */
.repolink-login-footer {
    padding: 24px 40px;
    background: #ffffff;
    text-align: center;
    border-top: 1px solid #dfe1e6;
}

.repolink-login-footer small {
    color: #6b778c;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.33333;
}

.repolink-login-footer small i {
    color: #0052cc;
    font-size: 12px;
}

/* ============================================
   POWERED BY SECTION - SIMPLE STYLE
   ============================================ */
.repolink-powered-by {
    padding: 16px 40px;
    background: #ffffff;
    text-align: center;
    border-top: 1px solid #f4f5f7;
}

.repolink-powered-by small {
    color: #8993a4;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 400;
}

.repolink-powered-by a {
    color: #0052cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.repolink-powered-by a:hover {
    color: #0747a6;
    text-decoration: underline;
}

/* ============================================
   ALERT MESSAGES - JIRA STYLE
   ============================================ */
.repolink-alert {
    padding: 12px 16px;
    border-radius: 3px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.42857;
    border: none;
    animation: alertSlideIn 0.2s ease-out;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.repolink-alert-error {
    background: #ffebe6;
    color: #bf2600;
}

.repolink-alert-success {
    background: #e3fcef;
    color: #006644;
}

.repolink-alert i {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================================
   RESPONSIVE DESIGN - THREE COLUMN LAYOUT
   ============================================ */
@media (max-width: 1200px) {
    .repolink-login-left,
    .repolink-login-right {
        padding: 20px;
    }

    .repolink-illustration,
    .repolink-visual-elements {
        max-width: 300px;
    }
}

@media (max-width: 992px) {
    .repolink-login-layout {
        flex-direction: column;
        min-height: auto;
        padding: 20px;
    }

    .repolink-login-left {
        order: 1;
        padding: 20px 0;
    }

    .repolink-login-center {
        order: 2;
        flex: none;
        padding: 20px 0;
    }

    .repolink-login-right {
        order: 3;
        padding: 20px 0;
    }

    .repolink-illustration,
    .repolink-visual-elements {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .repolink-login-container {
        padding: 16px;
    }

    .repolink-login-layout {
        padding: 0;
    }

    .repolink-login-card {
        max-width: 100%;
        margin: 0;
    }

    .repolink-login-header {
        padding: 24px 24px 0;
    }

    .repolink-login-body {
        padding: 0 24px 24px;
    }

    .repolink-login-footer {
        padding: 16px 24px;
    }

    /* Hide side elements on mobile for cleaner look */
    .repolink-login-left,
    .repolink-login-right {
        display: none;
    }

    .repolink-login-center {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .repolink-login-header {
        padding: 16px 16px 0;
    }

    .repolink-login-body {
        padding: 0 16px 16px;
    }

    .repolink-login-footer {
        padding: 12px 16px;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS - JIRA STYLE
   ============================================ */
.repolink-form-control:focus-visible {
    outline: 2px solid #0052cc;
    outline-offset: 2px;
}

.repolink-login-btn:focus-visible {
    outline: 2px solid #0052cc;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .repolink-login-container {
        background: #ffffff;
    }

    .repolink-login-card {
        border: 2px solid #000000;
    }

    .repolink-form-control {
        background: #ffffff;
        border: 2px solid #000000;
    }

    .repolink-login-btn {
        background: #0052cc;
        border: 2px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .repolink-login-card,
    .repolink-alert {
        animation: none;
    }

    .repolink-form-control,
    .repolink-login-btn {
        transition: none;
    }
}

/* ============================================
   LEFT SIDE ILLUSTRATION
   ============================================ */
.repolink-illustration {
    max-width: 400px;
    text-align: center;
}

.repolink-illustration-content {
    padding: 24px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 4px 0 rgba(9, 30, 66, 0.13);
}

.repolink-hero-svg {
    width: 160px;
    height: 128px;
    margin: 0 auto 20px;
}

.repolink-hero-svg svg {
    width: 100%;
    height: 100%;
}

.repolink-illustration h2 {
    font-size: 20px;
    font-weight: 600;
    color: #172b4d;
    margin: 0 0 12px;
    line-height: 1.33333;
}

.repolink-illustration p {
    font-size: 13px;
    color: #6b778c;
    line-height: 1.42857;
    margin: 0 0 20px;
}

.repolink-features {
    text-align: left;
}

.repolink-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #172b4d;
}

.repolink-feature-item:last-child {
    margin-bottom: 0;
}

.repolink-feature-item i {
    color: #00875a;
    font-size: 16px;
    flex-shrink: 0;
}

/* ============================================
   RIGHT SIDE VISUAL ELEMENTS
   ============================================ */
.repolink-visual-elements {
    max-width: 400px;
    width: 100%;
}

.repolink-analytics-svg {
    width: 100%;
    max-width: 250px;
    margin: 0 auto 24px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px 0 rgba(9, 30, 66, 0.13);
    padding: 16px;
}

.repolink-analytics-svg svg {
    width: 100%;
    height: auto;
}

.repolink-process-flow {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 4px 0 rgba(9, 30, 66, 0.13);
    padding: 24px;
}

.repolink-process-title {
    font-size: 16px;
    font-weight: 600;
    color: #172b4d;
    margin-bottom: 20px;
    text-align: center;
}

.repolink-process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.repolink-process-step {
    text-align: center;
    flex: 1;
}

.repolink-step-icon {
    width: 40px;
    height: 40px;
    background: #e6f3ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    border: 2px solid #0052cc;
}

.repolink-step-icon i {
    font-size: 16px;
    color: #0052cc;
}

.repolink-step-text {
    font-size: 12px;
    color: #6b778c;
    font-weight: 500;
}

.repolink-process-arrow {
    color: #b3bac5;
    font-size: 16px;
    flex-shrink: 0;
}