* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --bg-color: #0b111e;       
    --input-bg: #162235;       
    --btn-color: #2563eb;      
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --link-blue: #3b82f6;
}

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

.app-wrapper {
    width: 100%;
    max-width: 380px; 
}

.login-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    margin-top: 20px;
}

.logo-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    width: 100%;
}

.input-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 16px;
    background-color: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: var(--link-blue);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 4px;
    font-size: 13px;
    margin-bottom: 10px;
}

.terms-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    margin: 5px 0;
    padding-left: 4px;
}

.terms-wrapper input[type="checkbox"] {
    accent-color: var(--btn-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.link-action {
    color: var(--link-blue);
    text-decoration: none;
    font-weight: 500;
}

.link-action.highlighting {
    color: #60a5fa;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background-color: var(--btn-color);
    color: white;
    border: none;
    border-radius: 25px; 
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 10px;
}

.btn-primary.custom-radius {
    border-radius: 16px;
}

.btn-primary:active {
    transform: scale(0.98);
    background-color: #1d4ed8;
}

.social-divider {
    margin: 40px 0 25px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.social-login {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 22px;
    transition: transform 0.2s;
}

.social-icon:active {
    transform: scale(0.9);
}

.social-icon.google { color: #ea4335; background: rgba(234, 67, 53, 0.1); }
.social-icon.facebook { color: #1877f2; background: rgba(24, 119, 242, 0.1); }
.social-icon.apple { color: #ffffff; background: rgba(255, 255, 255, 0.1); }

.back-to-login {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}