.register-container {
    max-width: 360px;
    margin: 300px auto 200px;
    padding: 0 20px;
    min-height: calc(100vh - 500px);
}

.register-form {
    background-color: rgba(13, 17, 23, 0.95);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.register-form h1 {
    color: white;
    text-align: center;
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
}

.register-desc {
    color: #8b949e;
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
    max-width: 100%;
}

.input-with-icon {
    position: relative;
    max-width: 100%;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.input-with-icon input[type="password"] {
    padding-right: 40px;
    width: 100%;
    box-sizing: border-box;
}

.input-with-icon input:focus {
    outline: none;
    border-color: rgba(24, 116, 204, 0.5);
    box-shadow: 0 0 0 2px rgba(24, 116, 204, 0.15);
}

.input-with-icon input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.toggle-password, .toggle-password-confirm {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 16px;
    padding: 5px;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    outline: none;
}

.toggle-password:hover, .toggle-password-confirm:hover {
    color: rgba(255, 255, 255, 0.8);
}

.register-btn {
    width: 100%;
    padding: 12px;
    background-color: rgba(24, 116, 204, 0.8);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 5px;
}

.register-btn:hover {
    background-color: rgba(24, 116, 204, 1);
    transform: translateY(-1px);
}

.register-btn:disabled {
    background-color: rgba(24, 116, 204, 0.5);
    cursor: not-allowed;
    transform: none;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.login-link a {
    color: rgba(24, 116, 204, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-link a:hover {
    color: rgba(24, 116, 204, 1);
}

.error-messages {
    background-color: rgba(24, 116, 204, 0.05);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 20px;
}

.error-message {
    color: rgba(24, 116, 204, 0.9);
    font-size: 13px;
    text-align: center;
    font-weight: 500;
}

@media (max-width: 480px) {
    .register-container {
        margin: 250px auto 150px;
        min-height: calc(100vh - 400px);
    }

    .register-form {
        padding: 25px 20px;
    }

    .register-form h1 {
        font-size: 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .input-with-icon input {
        padding: 10px 15px;
    }

    .input-with-icon input[type="password"] {
        padding-right: 40px;
    }
}
