/* Color Palette */
:root {
    --bg-color: #f4f4f2;      /* Soft light stone */
    --accent-slate: #7a869a;  /* Muted sky blue-grey */
    --text-main: #1a1a1a;     /* Deep charcoal/black */
    --text-muted: #666666;    /* Secondary text */
    --border-color: #d1d1cf;  /* Subtle beige-grey borders */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif; /* Elegant Serif */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* Navbar Style */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 50px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.logo {
    font-size: 24px;
    letter-spacing: 12px;
    font-weight: 300;
    text-transform: uppercase;
}

/* Form Container */
.login-content {
    background: white;
    padding: 60px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 40px;
    font-family: Arial, sans-serif; /* Modern contrast */
}

/* Inputs */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

input:focus {
    border-bottom: 1px solid var(--text-main);
}

/* Buttons and Links */
.form-options {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 30px;
    font-family: Arial, sans-serif;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--text-main);
    color: white;
    border: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-slate);
}

.form-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.form-footer a, .forgot-link {
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--text-main);
    margin-left: 5px;
}

/* Specific styling for the dual-purpose input */
.input-group input[type="text"] {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    font-size: 15px;
    letter-spacing: 0.5px;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Subtle focus effect: the border darkens and moves slightly */
.input-group input[type="text"]:focus {
    outline: none;
    border-bottom: 1px solid var(--text-main);
    padding-left: 8px; /* Smooth elegant shift */
}

/* Placeholder styling to match the muted aesthetic */
.input-group input::placeholder {
    color: #b0b0b0;
    font-style: italic;
    font-size: 13px;
    opacity: 0.8;
}

/* Removes the box and adds the underline to match the password field */
.input-group input[type="text"] {
    width: 100%;
    padding: 12px 0;
    border: none;               /* Removes the box border */
    border-bottom: 1px solid #d1d1cf; /* Adds the elegant line */
    background: transparent;    /* Ensures no white box background */
    font-size: 16px;
    font-family: 'Times New Roman', Times, serif;
    outline: none;              /* Removes the blue/black box when clicking */
    transition: border-color 0.3s ease;
    border-radius: 0;           /* Fixes iOS rounded corner defaults */
    -webkit-appearance: none;   /* Removes default mobile styling */
}

/* Adds the dark line focus effect to match the rest of the form */
.input-group input[type="text"]:focus {
    border-bottom: 1px solid #1a1a1a;
}
/* This makes the placeholder disappear softly when the user clicks */
.input-group input:focus::placeholder {
    color: transparent;
}