/* Ortak auth/login — technician ile aynı hizalama (customer dahil) */

body.customer-auth-body,
body.technician-auth-body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    background: #fff;
    overflow-x: hidden;
    width: 100%;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.customer-auth-body .login-container,
body.technician-auth-body .login-container,
.login-container {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: max(12px, env(safe-area-inset-top, 0px)) 20px max(16px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    background: #fff;
}

.header-section {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 4px 0 12px;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
}

.logo-image {
    width: auto;
    height: 56px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.giris-panel-etiket {
    display: inline-block;
    margin: 0;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1E3A8A;
    background: linear-gradient(135deg, #E8EEFB 0%, #f0f4fb 100%);
    border: 1px solid rgba(30, 58, 138, 0.22);
    border-radius: 999px;
    line-height: 1.2;
    flex-shrink: 0;
}

.login-hero {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.login-hero-frame {
    width: 100%;
    max-width: 100%;
    display: block;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(30, 58, 138, 0.14);
    border: 1px solid rgba(30, 58, 138, 0.08);
    background: #f8fafc;
    line-height: 0;
}

.login-hero-img,
.login-illustration {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: clamp(140px, 28dvh, 260px);
    object-fit: cover;
    object-position: center;
}

.form-container {
    width: 100%;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 48px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transform: none;
}

body.customer-auth-body .input-icon-wrapper .input-icon,
body.technician-auth-body .input-icon-wrapper .input-icon,
.input-icon-wrapper .input-icon,
.input-icon-wrapper svg.input-icon {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    display: block;
    color: #1E3A8A;
    font-size: inherit;
    line-height: 1;
}

.form-input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 48px;
    border: 1.5px solid #E0E0E0;
    border-radius: 10px;
    font-size: 16px;
    color: #333333;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.2s ease;
    line-height: normal;
}

.password-wrapper .form-input {
    padding-right: 128px;
}

.form-input:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.form-input::placeholder {
    color: #999999;
}

.password-wrapper {
    position: relative;
}

.forgot-link {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 16px 0 8px;
    color: #1E3A8A;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    z-index: 2;
    background: #fff;
    transform: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.remember-me-satir {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    color: #666666;
    cursor: pointer;
    user-select: none;
}

.remember-me-satir input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1E3A8A;
    margin: 0;
    flex-shrink: 0;
}

.login-btn {
    width: 100%;
    height: 52px;
    margin: 4px 0 0;
    padding: 0 16px;
    background: #1E3A8A;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.22);
    cursor: pointer;
    box-sizing: border-box;
    font-family: inherit;
}

.login-btn:hover {
    background: #172554;
}

.login-btn:active {
    transform: scale(0.98);
}

.signup-container {
    text-align: center;
    margin: 4px 0 0;
}

.signup-text {
    color: #666666;
    font-size: 14px;
}

.signup-link {
    color: #1E3A8A;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.signup-link:hover {
    text-decoration: underline;
}

.features-container {
    width: 100%;
    padding: 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-top: auto;
    flex-shrink: 0;
}

.feature-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.feature-icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-label {
    color: #1E3A8A;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

/* Customer create ve diğer auth sayfalarında logo boyutu */
body.customer-auth-body .logo img {
    width: auto;
    height: 56px;
    object-fit: contain;
}

body.customer-auth-body .buton2 {
    background: #1E3A8A;
}

body.customer-auth-body .buton2:hover {
    background: #172554;
}

body.customer-auth-body .signup-link a,
body.customer-auth-body .forgot-password {
    color: #1E3A8A;
}

@media (max-height: 640px) {
    .logo-image,
    body.customer-auth-body .logo img {
        height: 48px;
    }

    .login-hero-img,
    .login-illustration {
        max-height: clamp(110px, 22dvh, 180px);
    }

    .feature-label {
        font-size: 10px;
    }
}
