* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f6fc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.register-card {
    width: 100%;
    max-width: 450px;
    background-color: #ffffff;
    border-radius: 25px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: all 0.2s ease;
}

.card-header {
    padding: 2rem 2rem 1rem 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #1e2a3e;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: inherit;
}

.back-button i {
    font-size: 1.25rem;
}

.back-button:hover {
    opacity: 0.7;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1e2a3e;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.125rem;
    color: rgba(30, 42, 62, 0.6);
    font-weight: 400;
}

/* form area */
.register-form {
    padding: 0 2rem 2rem 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1e2a3e;
    margin-bottom: 0.5rem;
    margin-left: 0.25rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(30, 42, 62, 0.4);
    transition: color 0.2s;
    pointer-events: none;
    font-size: 1.2rem;
}

.input-field {
    width: 100%;
    height: 55px;
    background-color: rgba(30, 42, 62, 0.04);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 0 1rem 0 3rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    color: #1e2a3e;
    font-weight: 500;
}

.input-field:focus {
    outline: none;
    background-color: #ffffff;
    border-color: rgba(30, 42, 62, 0.15);
}

.input-field::placeholder {
    color: rgba(30, 42, 62, 0.3);
    font-weight: 400;
}

/* password toggle button */
.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(30, 42, 62, 0.4);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #1e2a3e;
}

/* error alert */
.error-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #ffefef;
    border: 1px solid #ffcdcd;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.5rem;
    color: #c2410c;
}

.error-alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.error-alert span {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

.hidden {
    display: none;
}

/* register button */
.register-btn {
    width: 100%;
    height: 60px;
    background-color: #1e2a3e;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 8px 18px rgba(30, 42, 62, 0.2);
    cursor: pointer;
    transition: transform 0.15s, opacity 0.2s;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
}

.register-btn:active {
    transform: scale(0.98);
}

/* Добавьте в конец файла */
.home-button {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background-color: #6c5ce7;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.home-button:hover {
    background-color: #5b4bc4;
    transform: translateY(-2px);
}

.home-button i {
    font-size: 16px;
}

body {
    position: relative;
}

.register-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* footer link */
.login-link {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(30, 42, 62, 0.5);
}

.login-link a {
    color: #1e2a3e;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.login-link a:hover {
    text-decoration: underline;
}

/* spacing */
.space-y-4>*+* {
    margin-top: 1rem;
}

/* responsive */
@media (max-width: 480px) {
    .card-header {
        padding: 1.5rem 1.5rem 0.75rem 1.5rem;
    }

    .register-form {
        padding: 0 1.5rem 1.8rem 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}