* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box
}

body {
    background-color: #fff;
    color: #111;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: flex-start;
    align-items: center;
    font-size: 16px;
    padding: 0 0 40px;
}

/* Header section with logo and text */
header {
    background: linear-gradient(180deg, #0b1b28 0%, #0b1b28 100%);
    color: #bfa167;
    width: 100%;
    max-width: 480px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    padding: 32px 24px 48px;
    box-shadow: 0 3px 12px rgb(11 27 40 / 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* Logo container and styling */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 50%;
}

.logo-svg {
    width: 90px;
    height: 90px;
    fill: #bfa167;
    margin-bottom: 8px;
}

/* Text on the right */
.header-text {
    max-width: 50%;
    color: #fff;
    text-align: right;
}

.header-text h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
    font-family: "Georgia", serif;
}

.header-text p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #bfa167;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.header-text p span {
    color: #925c25;
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
    margin-top: 6px;
    font-style: italic;
}

/* Login form container */
main {
    width: 100%;
    max-width: 480px;
    margin-top: 32px;
    padding: 0px 16px;
}

h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #222;
}

form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid #1b1a8a;
    border-radius: 6px;
    outline-offset: 2px;
    outline-color: #2b2bfa80;
    font-family: inherit;
    color: #222;
}

input::placeholder {
    color: #666;
}

/* Password wrapper for visibility toggle */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 44px;
    letter-spacing: 0.12em;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #666;
    font-size: 20px;
    user-select: none;
}

/* Forgot password */
.forgot-password {
    text-align: right;
    font-size: 0.9rem;
}

.forgot-password a {
    color: #1b1a8a;
    text-decoration: none;
    font-weight: 600;
}

.forgot-password a:hover,
.forgot-password a:focus {
    text-decoration: underline;
    outline: none;
}

/* Buttons */
button.login-btn {
    background-color: #1717ff;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 14px 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.25s ease-in-out;
    box-shadow: 0 4px 6px rgba(23, 23, 255, 0.6);
}

button.login-btn:hover,
button.login-btn:focus {
    background-color: #1e1effcc;
    outline: none;
}

/* Register section */
.register-section {
    margin-top: 32px;
    text-align: center;
    font-size: 1rem;
    color: #333;
}

.register-section span {
    display: block;
    margin-bottom: 12px;
    color: #333;
}

button.register-btn {
    background-color: #0b1b28;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 14px 0;
    width: 100%;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 8px #000a15;
    transition: background-color 0.25s ease-in-out;
}

button.register-btn:hover,
button.register-btn:focus {
    background-color: #142d48;
    outline: none;
}

@media (max-width: 400px) {
    header {
        padding: 20px 16px 25px;
        flex-direction: column;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .header-text {
        max-width: 100%;
        text-align: center;
    }

    .logo-container {
        max-width: 100%;
    }
}

.d-flex{
    display: flex !important;
}

.back-arrow{
    margin-right: 10px;
    cursor: pointer;
}

.main-heading{
    margin: 15px 15px 15px 15px;
}