@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=DM+Sans:wght@300;400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #1a1f2e;
}

/* Background foto perusahaan */
.bg-photo {
    position: fixed;
    inset: 0;
    background-image: url('../images/bg-company.jpeg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.35) saturate(0.8);
    z-index: 0;
    transform: scale(1.05);
}

/* Overlay gradient di atas foto */
.bg-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(15, 20, 40, 0.75) 0%,
            rgba(30, 40, 70, 0.5) 50%,
            rgba(10, 15, 30, 0.8) 100%);
    z-index: 1;
}

/* Dekorasi garis tipis kiri */
.deco-line {
    position: fixed;
    left: 48px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
    z-index: 2;
}

.deco-line-right {
    left: auto;
    right: 48px;
}

/* Nama perusahaan pojok kiri atas */
.company-watermark {
    position: fixed;
    top: 36px;
    left: 72px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeInDown 0.8s ease 0.2s forwards;
}

.company-watermark .wm-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-watermark .wm-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-watermark span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Tahun pojok kanan bawah */
.company-year {
    position: fixed;
    bottom: 32px;
    right: 72px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 12px;
    letter-spacing: 3px;
    z-index: 10;
}

/* Container login */
.login-container {
    width: 100%;
    max-width: 460px;
    padding: 20px;
    position: relative;
    z-index: 10;
    opacity: 0;
    animation: fadeInUp 0.9s ease 0.4s forwards;
}

/* Card login */
.login-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 52px 48px;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    position: relative;
    overflow: hidden;
}

/* Kilap di pojok kanan atas card */
.login-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-wrap {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.logo-wrap:hover {
    transform: translateY(-3px);
}

.logo-wrap img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.login-header h2 {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.login-header p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13.5px;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Divider tipis */
.header-rule {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 16px auto 0;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

/* Input wrapper */
.neu-input {
    position: relative;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
    overflow: hidden;
}

.neu-input:focus-within {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.neu-input input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 20px 10px 48px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: all 0.2s ease;
}

.neu-input input::placeholder {
    color: transparent;
}

.neu-input label {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-weight: 300;
    pointer-events: none;
    transition: all 0.25s ease;
    font-family: 'DM Sans', sans-serif;
}

.neu-input input:focus+label,
.neu-input input:not(:placeholder-shown)+label {
    top: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.5px;
    transform: none;
}

.neu-input input:-webkit-autofill,
.neu-input input:-webkit-autofill:hover,
.neu-input input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.08) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon i {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.25s ease;
}

.input-icon svg {
    width: 100%;
    height: 100%;
}

.neu-input:focus-within .input-icon,
.neu-input:focus-within .input-icon i {
    color: rgba(255, 255, 255, 0.65);
}

.neu-toggle i {
    font-size: 14px;
}

/* Password */
.password-group {
    padding-right: 48px;
}

.neu-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
    font-size: 16px;
}

.neu-toggle:hover {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
}

/* Error */
.error-message {
    display: block;
    color: #ff7b7b;
    font-size: 12px;
    margin-top: 7px;
    margin-left: 4px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Tombol login */
.neu-button {
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    color: #1a1f2e;
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    margin-top: 4px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.neu-button:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.neu-button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Error dari Laravel */
.server-error {
    text-align: center;
    color: #ff9090;
    font-size: 13px;
    margin-top: 16px;
    padding: 10px 16px;
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.2);
    border-radius: 10px;
}

/* Animasi */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 40px 28px;
    }

    .deco-line {
        left: 20px;
    }

    .deco-line-right {
        right: 20px;
    }

    .company-watermark {
        left: 40px;
    }

    .company-year {
        right: 40px;
    }
}

/* Sembunyikan icon mata bawaan browser */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}