/* Giriş sayfası - Amasya Üniversitesi arayüz tasarımı */

.login-page-body {
    margin: 0;
    padding: 0;
}

.login-page-body main {
    margin: 0;
    padding: 0;
}

.login-page {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(
        to top,
        #2a4a6e 0%,
        #3d6a94 30%,
        #5b8fb8 60%,
        #8eb8dc 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Giriş kartı ölçeği: 0.77 + %5 = 0.81 */
.login-card-scale {
    display: inline-block;
    transform: scale(0.81);
    transform-origin: center center;
}

.login-card {
    width: 100%;
    max-width: 560px;
    border: 3px solid #d4a017;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(
        to top,
        #4a7a9e 0%,
        #5d8fb0 16%,
        #72a3c4 32%,
        #8ebad6 50%,
        #a8cce4 68%,
        #c5dff0 84%,
        #dcecf7 94%,
        #f5fafd 100%
    );
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.login-card-header {
    padding: 28px 24px 20px;
    text-align: center;
    background: transparent;
}

.login-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 16px;
}

.login-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1a1a1a;
    text-transform: uppercase;
    line-height: 1.45;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.login-divider {
    height: 4px;
    background-color: #d4a017;
    border: none;
    margin: 0;
}

/* --- Çizgiden aşağısı (resimdeki form alanı) --- */

.login-card-body {
    background: transparent;
    padding: 22px 26px 18px;
    box-sizing: border-box;
}

.login-form {
    width: 100%;
    max-width: 508px;
    margin: 0 auto;
}

.login-form-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 0;
}

.login-padlock-box {
    flex-shrink: 0;
    width: 98px;
    height: 98px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2e5a8a;
    border: 1px solid #1a3d5c;
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.login-padlock-icon {
    width: 62px;
    height: 62px;
    color: #f5a623;
    display: block;
}

.login-fields {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.login-field-group {
    display: flex;
    align-items: stretch;
    height: 38px;
    margin-bottom: 11px;
}

.login-field-group--password {
    margin-bottom: 0;
}

.login-field-icon {
    flex-shrink: 0;
    width: 42px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #5b9bd5;
    border: 1px solid #333;
    border-right: none;
    border-radius: 6px 0 0 6px;
    box-sizing: border-box;
}

.login-field-icon svg {
    width: 22px;
    height: 22px;
}

.login-field-icon--user svg {
    fill: #6a329f;
}

.login-field-icon--key {
    padding: 0;
    overflow: hidden;
    background-color: transparent;
    border-color: #333;
}

.login-key-icon {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.login-input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 6px 10px;
    border: 1px solid #333;
    border-radius: 0;
    background: #fff;
    font-size: 14px;
    line-height: 1.3;
    color: #222;
    outline: none;
    box-sizing: border-box;
}

.login-field-group:not(.login-field-group--password) .login-input {
    border-radius: 0 8px 8px 0;
}

.login-field-group--password .login-input--password {
    border-right: none;
    border-radius: 0;
}

.login-password-toggle {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #333;
    border-left: 1px solid #ccc;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    box-sizing: border-box;
}

.login-password-toggle svg {
    width: 20px;
    height: 20px;
    color: #555;
}

.login-password-toggle:hover {
    background: #f5f5f5;
}

.login-input:focus {
    border-color: #333;
}

.login-validation {
    display: block;
    margin-top: 4px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #b00020;
}

.login-validation-summary {
    margin-bottom: 10px;
    font-size: 12px;
    color: #b00020;
}

.login-submit {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: 20px;
    padding: 0 24px;
    font-size: 22px;
    font-weight: 700;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #689f38;
    background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 45%, #d0d0d0 100%);
    border: 2px solid #fff;
    outline: 2px solid #9e9e9e;
    border-radius: 26px;
    box-shadow:
        inset 1px 1px 0 #fff,
        inset -1px -1px 0 #888,
        2px 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    letter-spacing: 0.02em;
}

.login-submit:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 45%, #d8d8d8 100%);
}

.login-submit:active {
    transform: translateY(1px);
    box-shadow:
        inset -1px -1px 0 #fff,
        inset 1px 1px 0 #888;
}

.login-footer-divider {
    height: 1px;
    margin: 16px 0 12px;
    background-color: rgba(30, 30, 30, 0.25);
    border: none;
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 22px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.login-remember-checkbox {
    width: 15px;
    height: 15px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #4a2040;
    cursor: pointer;
}

.login-remember-text {
    font-size: 15px;
    font-weight: 600;
    color: #4a2040;
    line-height: 1.2;
    white-space: nowrap;
}

.login-forgot {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    font-weight: 600;
    color: #4a2040;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.login-forgot:hover {
    color: #351530;
    text-decoration: underline;
}

.login-forgot-emoji {
    font-size: 17px;
    line-height: 1;
}

/* Şifre hatırlatma modal */

.login-sifre-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(0, 0, 0, 0.45);
}

.login-sifre-modal-overlay[hidden] {
    display: none !important;
}

.login-sifre-modal {
    width: 100%;
    max-width: 430px;
    border: 3px solid #d4a017;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.login-sifre-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #1a4f7c 0%, #2d6ea3 45%, #3d84b8 100%);
}

.login-sifre-modal-info {
    flex-shrink: 0;
    display: inline-flex;
}

.login-sifre-modal-info-ring {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d4a017;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.login-sifre-modal-info-box {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a5a8e;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1;
}

.login-sifre-modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.login-sifre-modal-body {
    padding: 28px 24px 24px;
    text-align: center;
    background: linear-gradient(180deg, #eef2f5 0%, #d8e0e8 100%);
}

.login-sifre-modal-message {
    margin: 0 0 24px;
    font-size: 17px;
    font-weight: 600;
    color: #2a3540;
    line-height: 1.4;
    word-break: break-word;
}

.login-sifre-modal-ok {
    min-width: 120px;
    height: 40px;
    padding: 0 28px;
    font-size: 18px;
    font-weight: 700;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #1a3d66;
    background: linear-gradient(180deg, #ffffff 0%, #e4e8ec 45%, #c8d0d8 100%);
    border: 2px solid #1a3d66;
    border-radius: 22px;
    box-shadow:
        inset 1px 1px 0 #ffffff,
        inset -1px -1px 0 #9aa8b5,
        1px 2px 4px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.login-sifre-modal-ok:hover {
    background: linear-gradient(180deg, #ffffff 0%, #edf1f4 45%, #d2dae2 100%);
}

.login-sifre-modal-ok:active {
    transform: translateY(1px);
}

@media (max-width: 520px) {
    .login-card-scale {
        transform: scale(0.76);
    }

    .login-card-body {
        padding: 18px 14px 16px;
    }

    .login-form-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .login-padlock-box {
        width: 88px;
        height: 88px;
    }

    .login-padlock-icon {
        width: 54px;
        height: 54px;
    }

    .login-fields {
        width: 100%;
    }

    .login-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .login-remember-text,
    .login-forgot {
        white-space: normal;
    }
}
