﻿/* Container */
.auth-container {
    position: relative;
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #0a1628 100%);
    /*min-height: 100vh;*/
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    overflow: hidden;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    pointer-events: none;
}

.background-blur-1 {
    position: absolute;
    top: 25%;
    left: 33%;
    width: 500px;
    height: 500px;
    background: #3b82f6;
    border-radius: 50%;
    filter: blur(120px);
    animation: pulse 4s ease-in-out infinite;
}

.background-blur-2 {
    position: absolute;
    bottom: 25%;
    right: 33%;
    width: 400px;
    height: 400px;
    background: #06b6d4;
    border-radius: 50%;
    filter: blur(100px);
    animation: pulse 4s ease-in-out infinite 1s;
}

@@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.auth-form-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 36rem;
    margin-top: -1rem; /* formu biraz yukarı taşı */
}

.auth-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.auth-card-wide {
    max-width: 100rem;
    padding: 3rem;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.company-logo-auth {
    width: 5rem;
    height: 5rem;
    filter: drop-shadow(0 4px 12px rgba(96, 165, 250, 0.4));
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: white;
    text-align: center;
    margin-bottom: 0.75rem;
}

.auth-subtitle {
    color: #bfdbfe;
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group-auth {
    display: flex;
    flex-direction: column;
}

.form-label-auth {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #bfdbfe;
    margin-bottom: 0.6rem;
    max-width: 25rem;
}

.form-input-auth {
    width: 100%;
    padding: 0.95rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.625rem;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    .form-input-auth::placeholder {
        color: rgba(156, 163, 175, 0.7);
    }

    .form-input-auth:focus {
        outline: none;
        border-color: #60a5fa;
        box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
        background: rgba(255, 255, 255, 0.15);
    }

.text-danger-auth {
    color: #fca5a5;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    display: block;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #bfdbfe;
    font-size: 0.95rem;
    cursor: pointer;
}

.remember-text {
    white-space: nowrap;
}

.checkbox-auth {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    flex-shrink: 0;
}

.forgot-password {
    color: #93c5fd;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

    .forgot-password:hover {
        color: #bfdbfe;
    }

.terms-checkbox {
    display: flex;
    align-items: start;
    gap: 0.6rem;
}

    .terms-checkbox span {
        color: #bfdbfe;
        font-size: 0.95rem;
        line-height: 1.6;
    }

.auth-link-inline {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .auth-link-inline:hover {
        color: #bfdbfe;
    }

.btn-auth-primary {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(to right, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 0.625rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

    .btn-auth-primary:hover {
        background: linear-gradient(to right, #2563eb, #1d4ed8);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    }

.auth-footer {
    text-align: center;
    color: #bfdbfe;
    margin-top: 2rem;
    font-size: 0.95rem;
}

.auth-link {
    color: #93c5fd;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .auth-link:hover {
        color: #bfdbfe;
    }

.validation-summary {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 0.625rem;
    padding: 1rem;
}

.validation-errors {
    color: #fca5a5;
    font-size: 0.9rem;
    margin: 0;
}

    .validation-errors li {
        margin-bottom: 0.4rem;
    }

@@media (max-width: 640px) {
    .auth-container {
        padding: 0.5rem 1rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 2rem;
    }

    .company-logo-auth {
        width: 4rem;
        height: 4rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

@@media (min-width: 768px) {
    .auth-form-wrapper {
        max-width: 36rem;
    }
   
    .auth-card-wide {
        max-width: 60rem;
    }
}

/* Tenant input wrapper */
.tenant-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.tenant-help-btn-auth {
    margin-left: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    font-weight: bold;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

    .tenant-help-btn-auth:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }

/* Custom popover */
.popover.tenant-popover-auth {
    max-width: 560px !important;
    width: 560px !important;
    right: auto !important;
    left: auto !important;
    border-radius: 14px;
    border: none;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: fadeSlideAuth .25s ease;
    white-space: normal !important;
    word-wrap: break-word;
}

@keyframes fadeSlideAuth {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popover.tenant-popover-auth .popover-title {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 16px;
    font-weight: 600;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.popover.tenant-popover-auth .popover-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
}

/* Command box */
.tenant-command-auth {
    background: #0f172a;
    color: #38bdf8;
    padding: 12px;
    border-radius: 8px;
    font-family: Consolas, monospace;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Output */
.tenant-output-auth {
    background: #111827;
    color: #e5e7eb;
    padding: 16px;
    border-radius: 10px;
    font-family: Consolas, monospace;
    font-size: 12px;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: auto;
    white-space: pre-wrap;
}

.tenant-highlight {
    color: #22d3ee;
    font-weight: bold;
}

.tenant-warning {
    color: #dc2626;
    font-weight: 600;
}

.tenant-section-title {
    font-weight: 600;
}

.copy-btn-auth {
    background: #2563eb;
    border: none;
    color: white;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
}

    .copy-btn-auth:hover {
        background: #1d4ed8;
    }

.copy-toast-auth {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #16a34a;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    display: none;
    z-index: 9999;
}



/* Popover özel stiller */
.popover {
    max-width: 520px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.popover-title {
    background-color: #2563eb;
    color: white;
    font-weight: 600;
    padding: 10px 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.popover-content {
    padding: 15px 20px;
    font-size: 13px;
    color: #333;
}

.btn-info.btn-xs {
    font-size: 14px;
    line-height: 1;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    padding: 0;
    text-align: center;
    vertical-align: middle;
}