:root {
    --primary-color: #125a5b;
    --secondary-color: #167172;
    --text-color: #1f1f20;
    --text-muted: #797d85;
    --border-color: #363636;
    --border-color-light: #e5e7eb;
    --background-color: #f6f7f9;
    --card-background: #ffffff;
    --focus-color: #0088ff;
    --input-background: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.25);
    --login-color: #313a3a;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
}

body {
    margin: 0;
    font-family: 'Aktiv Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 475px;
    padding: 20px;
}

.login-card {
    background: var(--card-background);
    border-radius: 0;
    box-shadow: 0 8px 32px var(--shadow-color);
    padding: 35px 40px;
    text-align: center;
}

.icon {
    margin-bottom: 20px;
}

.icon img {
    transform: rotate(-12deg);
    width: 50px;
    height: 60px;
}

h1 {
    color: var(--login-color);
    font-size: 32px;
    font-family: 'Aktiv Grotesk Thin', 'Aktiv Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-weight: 400;
    margin-bottom: 25px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-group {
    position: relative;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.input-field {
    width: 330px;
    height: 42px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--input-background);
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.input-field:focus {
    outline: 1px solid var(--primary-color);
    border-color: var(--primary-color);
    background-color: var(--card-background);
    box-shadow: none;
}

.input-label {
    position: absolute;
    left: 20px;
    top: 13px;
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
    pointer-events: none;
    transition: all 0.2s ease;
    background-color: var(--input-background);
    padding: 0 4px;
}

.input-field:focus + .input-label,
.input-field:not(:placeholder-shown) + .input-label,
.input-field:valid + .input-label {
    top: -8px;
    left: 24px;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

.input-field:focus + .input-label {
    color: var(--primary-color);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18.5px;
    padding: 4px;
}

.input-group:has(#password) .input-field {
    padding-right: 40px;
}

.toggle-password:hover {
    color: var(--text-color);
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 10px;
}

.forgot-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.login-btn {
    background-color: var(--primary-color);
    color: var(--card-background);
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 520;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 10px auto 0 auto;
    width: 325px;
}

.login-btn:hover {
    background-color: var(--secondary-color);
}

.bottom-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    font-size: 14px;
}

.join-text {
    color: var(--text-color);
    font-size:16.5px;
    font-weight: 500;
}

.create-account {
    color: var(--primary-color);
    text-decoration: none;
    font-size:16.5px;
    font-weight: 550;
}

.create-account:hover {
    text-decoration: underline;
}

/* Form element resets (matching portal standards) */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/* Focus states */
.login-btn:focus,
.forgot-link:focus,
.create-account:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

/* Touch device optimizations */
@media (pointer: coarse) {
    .toggle-password {
        padding: 8px;
        font-size: 18px;
    }
}

/* Responsive design */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .input-field {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 