/* 900 weight / normal ------------------------------------------ */
@font-face {
  font-display: swap;
  font-family: Figtree;
  font-style: normal;
  font-weight: 900;
  src: url("../fonts/static/Figtree-Black.ttf") format("truetype");
}

/* 300 weight / italic ------------------------------------------ */
@font-face {
  font-display: swap;
  font-family: Figtree;
  font-style: italic;
  font-weight: 900;
  src: url("../fonts/static/Figtree-BlackItalic.ttf") format("truetype");
}

/* 400 weight / normal ------------------------------------------ */
@font-face {
  font-display: swap;
  font-family: Figtree;
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/static/Figtree-Regular.ttf") format("truetype");
}

/* 700 weight / normal ------------------------------------------ */
@font-face {
  font-display: swap;
  font-family: Figtree;
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/static/Figtree-Bold.ttf") format("truetype");
}

/* 400 weight / italic ------------------------------------------ */
@font-face {
  font-display: swap;
  font-family: Figtree;
  font-style: italic;
  font-weight: 400;
  src: url("../fonts/static/Figtree-Italic.ttf") format("truetype");
}

/* 700 weight / italic ------------------------------------------ */
@font-face {
  font-display: swap;
  font-family: Figtree;
  font-style: italic;
  font-weight: 700;
  src: url("../fonts/static/Figtree-BoldItalic.ttf") format("truetype");
}

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

body {
    background: #ff6c00;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::after {
    content: "";
    position: absolute;
    top: 10%;
    right: 0;
    width: 1156px;
    height: 924px; /* adjust height to fit */
    background: url('/images/curley-bars.svg') no-repeat right top;
    background-size: contain;
    z-index: 2;
    pointer-events: none; /* makes sure it's not clickable */
    filter: sepia(88%) saturate(4914%) hue-rotate(4deg) brightness(45%) contrast(135%);
}

.logo-container {
    position: fixed;
    top: 62px;
    left: 65px;
    z-index: 1000;
}

/* Logo Section */
.login-logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
}

.login-logo img {
    height: 45px;
    width: auto;
}

.brand-tagline {
    line-height: 14px;
    font-size: 18px;
    color: #ffffff;
    font-weight: 400;
    font-family: "Figtree";
}


/* Container */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 9;
    min-width: 100%;
}

/* Login Card */
.login-card {
    background: white;
    border-radius: 6px;
    width: 450px;
    padding: 0;
    padding-bottom: 45px;
    position: relative;
    transition: filter 0.5s ease;
}

.login-card:hover {
    filter: drop-shadow(0px 30px 35px rgba(171, 36, 0, 0.2));
}

/* Header Section */
.header-login {
    padding: 30px 24px 20px 31px;
}

.back-button {
    display: inline-flex;
    text-decoration: none;
    font-size: 14px;
    line-height: 11px;
    color: #828487;
    font-weight: 400;
    font-family: "Figtree";
    text-align: center;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.back-button:hover {
    color: #161b1f;
}

.back-button img {
    margin-right: 10px;
    width: 14px;
    height: 11px;
    transition: filter 0.3s;
}

.back-button:hover img {
    filter: brightness(0);
}

.title {
    font-size: 24px;
    line-height: 23px;
    color: #161b1f;
    font-weight: 700;
    font-family: "Figtree";
    text-align: center;
}

.instruction-text {
    font-family: "Figtree";
    font-size: 14px;
    color: #828487;
    line-height: 1.429;
    text-align: center;
    margin: 18px auto 0 auto;
    max-width: 340px;
}

.instruction-text a {
    color: #828487;
}

/* Form Styles */
.login-form {
    padding: 0 41px;
}

.form-group:first-child {
    margin-bottom: 23px;
}

.form-label {
    display: block;
    font-size: 14px;
    line-height: 14px;
    color: #161b1f;
    font-weight: 500;
    font-family: "Figtree";
    margin-bottom: 7px;
    margin-left: 7px;
}

.input-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
    width: 14px;
    height: 16px;
}

.form-input {
    width: 100%;
    height: 41px;
    padding-left: 48px;
    border: 1px solid #e1e2e5;
    border-radius: 6px;
    font-size: 14px;
    color: #161b1f;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
}

.form-input::placeholder {
    color: #828487;
}

/* Sign In Button */
.signin-button {
    width: 100%;
    height: 41px;
    background: #151b1f;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    line-height: 15px;
    color: #ffffff;
    font-family: "Figtree";
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 16px;
    margin-bottom: 33px;
}

.signin-button:hover {
    background: #273038;
}

/* Forgot Password Section */
.forgot-password {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.forgot-text {
    font-size: 14px;
    line-height: 15px;
    color: #828487;
    font-weight: 400;
    font-family: "Figtree";
    text-align: center;
    text-decoration: none;
}

.reset-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.check-icon {
    width: 14px;
    height: 14px;
}

.reset-link {
    font-size: 14px;
    line-height: 11px;
    color: #161b1f;
    font-weight: 400;
    font-family: "Figtree";
    text-align: center;
    text-decoration: none;
}

.reset-link:hover {
    text-decoration: underline;
    color: #161b1f;
}

@media screen and (max-width: 768px) {
    body::after {
        width: 800px;
        height: 724px;
    }
}

@media screen and (max-width: 500px) {
    body::after {
        width: 700px;
        height: 624px;
    }
    
    .login-logo img {
        height: 35px;
        width: auto;
    }

    .logo-container {
        top: 25px;
        left: 20px;
    }

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

    .brand-tagline {
        font-size: 16px;
    }

    /* Login Card */
    .header-login {
        padding: 20px 24px 20px 20px;
    }

    .login-form {
        padding: 0 20px;
    }
}
