/* Global Reset */
* {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background-color: #101010;
    color: #f1f1f1;
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

/* Container */
.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* Login Box */
.login-box {
    background: #1a1a1a;
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.9s ease-out forwards;
    border: 1px solid #2a2a2a;
}

/* Logo */
.logo-img {
    width: 250px;
    height: 80px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 12px;
}

/* Headings & Text */
h1 {
    font-size: 22px;
    color: #8CDF8C;
    font-weight: 600;
    animation: fadeIn 1.1s ease-out forwards;
}

h2.title,
p.subtitle,
p.welcome,
.help {
    text-align: center;
}

.sub {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 16px;
    animation: fadeIn 1.2s ease-out forwards;
}

.welcome {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    animation: fadeIn 1.3s ease-out forwards;
}

/* Input Fields */
.input-group {
    position: relative;
    margin-bottom: 14px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px;
    background-color: #131313; /* darker than #1a1a1a */
    color: #f1f1f1;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}


input:focus {
    border-color: #8CDF8C;
    outline: none;
    box-shadow: 0 0 6px rgba(140, 223, 140, 0.4);
}

input.error {
    border-color: red;
}

/* Password Field with Toggle */
.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 14px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #aaa;
}

/* Name Fields */
.name-fields {
    display: flex;
    gap: 10px;
    width: 100%;
}

.name-fields input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.name-fields input:focus {
    border-color: #8CDF8C;
    outline: none;
    box-shadow: 0 0 6px rgba(140, 223, 140, 0.4);
}

@media (max-width: 500px) {
    .name-fields {
        flex-direction: column;
    }
}

/* Button */
button {
    width: 100%;
    background-color: transparent;
    color: #8CDF8C;
    padding: 12px;
    font-size: 14px;
    border: 1.5px solid #8CDF8C;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: 600;
}

button:hover {
    background-color: #8CDF8C;
    color: #101010;
    transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(140, 223, 140, 0.5);
}

button:active {
    transform: scale(0.97);
}

/* Help Text */
.help {
    font-size: 12px;
    color: #ccc;
    margin-top: 14px;
}

.help a {
    color: #8CDF8C;
    text-decoration: underline;
}

/* Error Message */
.error-text {
    color: red;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    text-align: left;
}

/* Fade In Animation */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
