/* V2 Register Page Styles */

.v2-register-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--v2-bg);
    color: var(--v2-text);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}

@media (min-width: 1024px) {
    .v2-register-main {
        padding-left: 10rem;
        padding-right: 10rem;
    }
}

/* Breadcrumbs */
.v2-register-breadcrumbs {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.v2-register-breadcrumbs a {
    color: var(--text-muted);
    transition: color 0.3s;
    text-decoration: none;
}

.v2-register-breadcrumbs a:hover {
    color: var(--v2-primary);
}

.v2-register-breadcrumb-separator {
    margin: 0 0.5rem;
    font-size: 1rem;
}

.v2-register-breadcrumb-current {
    color: var(--v2-text);
}

/* Register Card Container */
.v2-register-card-wrapper {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

/* Register Card */
.v2-register-card {
    position: relative;
    background-color: var(--v2-secondary);
    border: 1px solid var(--v2-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

@media (min-width: 640px) {
    .v2-register-card {
        padding: 3rem;
    }
}

/* Gradient Top Border */
.v2-register-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        var(--v2-primary),
        transparent
    );
    opacity: 0.5;
}

/* Header Section */
.v2-register-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.v2-register-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: var(--v2-bg);
    border: 1px solid var(--v2-border);
    color: var(--v2-primary);
    margin-bottom: 1rem;
    box-shadow: 0 0 15px color-mix(in srgb, var(--v2-primary), transparent 90%);
}

.v2-register-icon {
    font-size: 2rem;
}

.v2-register-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--v2-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.v2-register-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (min-width: 640px) {
    .v2-register-subtitle {
        font-size: 1rem;
    }
}

/* Form Styles */
.v2-register-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.v2-register-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.v2-register-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0 0.25rem;
}

.v2-register-input-group {
    position: relative;
}

.v2-register-input {
    width: 100%;
    background-color: var(--v2-bg);
    border: 1px solid var(--v2-border);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    color: var(--v2-text);
    font-size: 0.875rem;
    transition: all 0.3s;
    outline: none;
}

[dir="rtl"] .v2-register-input {
    padding: 0.75rem 2.75rem 0.75rem 1rem;
}

.v2-register-input:focus {
    border-color: var(--v2-primary);
    box-shadow: 0 0 0 1px var(--v2-primary);
}

.v2-register-input::placeholder {
    color: #555;
}

.v2-register-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    font-size: 1.125rem;
    transition: color 0.3s;
    pointer-events: none;
}

[dir="rtl"] .v2-register-input-icon {
    left: auto;
    right: 1rem;
}

.v2-register-input-group:focus-within .v2-register-input-icon {
    color: var(--v2-primary);
}

/* Password Match Icon */
.v2-register-match-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--v2-primary);
    font-size: 1.125rem;
}

[dir="rtl"] .v2-register-match-icon {
    right: auto;
    left: 1rem;
}

.v2-register-pulse {
    animation: v2-register-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes v2-register-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Password Strength Meter */
.v2-register-strength {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.625rem;
    height: 4px;
    padding: 0 0.25rem;
}

.v2-register-strength-bar {
    flex: 1;
    background-color: var(--v2-border);
    border-radius: 9999px;
    transition: background-color 0.3s;
}

.v2-register-strength-bar.weak {
    background-color: #ef4444;
}
.v2-register-strength-bar.medium {
    background-color: #f59e0b;
}
.v2-register-strength-bar.strong {
    background-color: var(--v2-primary);
}

.v2-register-strength-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
    padding: 0 0.25rem;
}

/* Split Field Grid */
.v2-register-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .v2-register-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Checkbox and Terms */
.v2-register-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.v2-register-checkbox {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #555;
    background-color: var(--v2-bg);
    cursor: pointer;
    appearance: none;
    position: relative;
    transition: all 0.2s;
    margin-top: 0.25rem;
}

.v2-register-checkbox:checked {
    background-color: var(--v2-primary);
    border-color: var(--v2-primary);
}

.v2-register-checkbox:checked::after {
    content: "check";
    font-family: "Material Symbols Outlined";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    color: var(--v2-bg);
}

.v2-register-terms-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.v2-register-terms-label a {
    color: var(--v2-text);
    text-decoration: underline;
    text-decoration-color: color-mix(
        in srgb,
        var(--v2-primary),
        transparent 50%
    );
    transition: all 0.3s;
}

.v2-register-terms-label a:hover {
    color: var(--v2-primary);
    text-decoration-color: var(--v2-primary);
}

/* Submit Button */
.v2-register-submit-btn {
    width: 100%;
    height: 54px;
    background-color: var(--v2-primary);
    color: var(--v2-bg);
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: all 0.3s;
    box-shadow: 0 0 20px color-mix(in srgb, var(--v2-primary), transparent 75%);
}

.v2-register-submit-btn:hover {
    filter: brightness(1.1);
}

.v2-register-submit-btn:active {
    transform: scale(0.99);
}

.v2-register-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.v2-register-submit-btn .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Divider */
.v2-register-divider {
    position: relative;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-register-divider-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--v2-border);
}

.v2-register-divider-text {
    position: relative;
    background-color: var(--v2-secondary);
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Google Button */
.v2-register-google-btn {
    width: 100%;
    height: 54px;
    background-color: var(--v2-bg);
    border: 1px solid var(--v2-border);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--v2-text);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.v2-register-google-btn:hover {
    background-color: var(--v2-secondary);
    border-color: #555;
}

.v2-register-google-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Footer Link */
.v2-register-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.v2-register-login-link {
    color: var(--v2-primary);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

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

/* Error Messages */
.v2-register-error {
    font-size: 0.75rem;
    color: var(--v2-error);
    margin-top: 0.25rem;
    padding: 0 0.25rem;
}
