/* ===================================
   Powerspace - Signup CSS
   =================================== */

/* ===== CSS Variables ===== */
:root {
    --color-primary: rgb(129, 53, 163);
    --color-primary-hover: #6b2a8f;
    --color-dark: #000628;
    --color-gray: #ede7e2;
    --color-off-white: #faf8f6;
    --color-text: #000628;
    --color-text-light: #6b7280;
    --font-primary: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-off-white);
    background-image: 
        linear-gradient(rgba(129, 53, 163, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129, 53, 163, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
    padding: 20px 0;
    background: rgba(250, 248, 246, 0.8);
    backdrop-filter: blur(10px);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 28px;
    width: auto;
}

.header-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.header-nav a {
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: var(--color-primary);
}

/* ===== Auth Main ===== */
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 60px 20px;
}

.auth-container {
    width: 100%;
    max-width: 650px;
}

.auth-box {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.auth-box-large {
    max-width: 650px;
    margin: 0 auto;
}

.auth-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.auth-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

/* ===== Form Styles ===== */
.auth-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--color-gray);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-body);
    background: var(--color-off-white);
    color: var(--color-text);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(129, 53, 163, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--color-primary);
}

.form-hint {
    display: block;
    margin-top: 5px;
    color: var(--color-text-light);
    font-size: 0.85rem;
}

.form-checkbox {
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.form-checkbox a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn span {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.btn span:last-child {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateY(50px);
    opacity: 0;
}

.btn:hover span:first-child {
    transform: translateY(-50px);
    opacity: 0;
}

.btn:hover span:last-child {
    transform: translate(-50%, -50%) translateY(0);
    opacity: 1;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(129, 53, 163, 0.3);
}

.btn-full {
    width: 100%;
}

/* ===== Auth Footer ===== */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--color-gray);
}

.auth-footer p {
    color: var(--color-text-light);
}

.signup-link {
    color: var(--color-primary);
    font-weight: 600;
}

.signup-link:hover {
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    
    .auth-box {
        padding: 40px 30px;
    }
    
    .auth-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
}
