/* style.css */

/* --- Global Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #000000;
    color: #ffffff;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* --- Layout Container --- */
.container {
    width: 100%;
    max-width: 450px; /* Limits width on desktop to look like mobile */
    padding: 24px;
    display: flex;
    flex-direction: column;
}

/* --- Header Section --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    margin-top: 10px;
}

.back-btn, .help-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* --- Logo & Typography --- */
.logo {
    margin-bottom: 24px;
}

.title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 30px;
}

.subtitle {
    color: #8e8e93;
    font-size: 16px;
    margin-bottom: 24px;
    text-align: center;
}

/* --- Form Elements --- */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="email"], 
input[type="text"] {
    width: 100%;
    background-color: #1c1c1e; /* Dark grey input background */
    border: 1px solid #3a3a3c;
    border-radius: 12px;
    padding: 16px;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: #58585a;
}

/* --- Buttons --- */
.btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: opacity 0.2s;
    margin-bottom: 16px;
}

.btn:active {
    opacity: 0.7;
}

/* Primary Button (Continue) */
.btn-primary {
    background-color: #fff; /* Greyed out look from screenshot */
    color: #000000;
    border: none;
    margin-top: 10px;
    margin-bottom: 30px;
}

/* Social Buttons */
.btn-social {
    background-color: transparent;
    border: 1px solid #3a3a3c;
    color: #ffffff;
    margin-bottom: 12px;
}

.btn-social svg {
    width: 20px;
    height: 20px;
}

/* --- Divider (OR) --- */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0 30px 0;
    color: #8e8e93;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #3a3a3c;
}

.divider span {
    padding: 0 10px;
}

/* --- Footer Links --- */
.signup-link {
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
    color: #ffffff;
}

.signup-link a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

/* --- OTP Page Specific Styles --- */
.otp-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 30px;
}

.otp-input {
    width: 100%;
    height: 60px;
    background-color: #1c1c1e;
    border: 1px solid #3a3a3c;
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
}

.otp-input:focus {
    border-color: #ffffff;
    background-color: #2c2c2e;
}

.resend-link {
    text-align: center;
    color: #8e8e93;
    font-size: 15px;
    margin-top: 20px;
}

.resend-link span {
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

/* --- Responsive Tweaks --- */
@media (max-width: 380px) {
    .title {
        font-size: 28px;
    }
    
    .btn {
        padding: 14px;
        font-size: 16px;
    }
}