/* =========================================================
   YupClone Auth — Login & Registration Styles
   Extends main.css — same palette variables
   ========================================================= */

/* ── Auth page shell ── */
.auth-page {
	position: relative;
	min-height: calc(100vh - 68px);
	display: flex;
	align-items: center;
	overflow: hidden;
	padding: 20px 0px;
}

.auth-page__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.auth-page__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: .18;
}

.auth-page__glow--1 {
	width: 600px;
	height: 600px;
	background: var(--yc-primary);
	top: -160px;
	right: -120px;
}

.auth-page__glow--2 {
	width: 400px;
	height: 400px;
	background: var(--yc-accent);
	bottom: -100px;
	left: -80px;
}

.auth-page__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 48px 20px;
	display: flex;
	justify-content: center;
}

.auth-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.auth-btn__icon {
	flex-shrink: 0;
}


@media (max-width:640px){

	.auth-btn--login {
		width:40px;
		height:40px;
		padding:0;
		border-radius:50%;
	}

	.auth-btn--login .auth-btn__text {
		display:none;
	}

	/* .auth-btn--register {
		padding-inline:14px;
	} */
}

/* ── Card ── */
.auth-card {
	width: 100%;
	max-width: 440px;
	background: var(--yc-surface);
	border: 1px solid var(--yc-border);
	border-radius: var(--yc-radius);
	padding: 40px 36px;
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7),
	            0 0 0 1px rgba(47, 107, 255, .08);
}

@media (max-width: 480px) {
	.auth-card { padding: 28px 20px; }
}

/* ── Card header ── */
.auth-card__header { text-align: center; margin-bottom: 28px; }

.auth-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--yc-primary), var(--yc-accent));
	color: #fff;
	margin-bottom: 16px;
	box-shadow: var(--yc-shadow-glow);
}

.auth-card__title {
	font-family: var(--yc-font-head);
	font-size: 1.6rem;
	font-weight: 800;
	margin: 0 0 6px;
	color: var(--yc-text);
}

.auth-card__sub {
	color: var(--yc-muted);
	font-size: 14px;
	margin: 0;
	line-height: 1.5;
}

/* ── Alert ── */
.auth-alert {
	padding: 12px 14px;
	border-radius: var(--yc-radius-sm);
	font-size: 14px;
	margin-bottom: 20px;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.auth-alert--error {
	background: rgba(255, 90, 95, .12);
	border: 1px solid rgba(255, 90, 95, .3);
	color: #ff7b7f;
}

.auth-alert--success {
	background: rgba(34, 197, 94, .12);
	border: 1px solid rgba(34, 197, 94, .3);
	color: #4ade80;
}

/* ── Form fields ── */
.auth-form { display: flex; flex-direction: column; gap: 18px; }

.auth-field { display: flex; flex-direction: column; gap: 7px; }

.auth-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--yc-text);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.auth-label__link {
	font-weight: 500;
	color: var(--yc-accent);
	font-size: 12px;
}

.auth-label__link:hover { color: var(--yc-text); }

/* Input wrapper — icon + input + toggle */
.auth-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.auth-input-icon {
	position: absolute;
	left: 14px;
	color: var(--yc-muted);
	display: flex;
	pointer-events: none;
	z-index: 1;
}

.auth-input {
	width: 100%;
	background: var(--yc-surface-2);
	border: 1px solid var(--yc-border);
	border-radius: var(--yc-radius-sm);
	color: var(--yc-text);
	font-family: var(--yc-font-body);
	font-size: 15px;
	padding: 13px 42px 13px 40px;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}

.auth-input::placeholder { color: var(--yc-muted); }

.auth-input:focus {
	border-color: var(--yc-primary);
	box-shadow: 0 0 0 3px rgba(47, 107, 255, .2);
}

.auth-input:focus + .auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon { color: var(--yc-primary); }

/* Password toggle button */
.auth-toggle-pw {
	position: absolute;
	right: 12px;
	background: none;
	border: none;
	color: var(--yc-muted);
	cursor: pointer;
	display: flex;
	padding: 4px;
	border-radius: 4px;
	transition: color .15s;
}
.auth-toggle-pw:hover { color: var(--yc-accent); }

/* ── Checkbox row ── */
.auth-check { margin-top: 2px; }

.auth-check__label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: var(--yc-muted);
	cursor: pointer;
	line-height: 1.5;
}

.auth-check__label input[type="checkbox"] {
	width: 16px;
	height: 16px;
	border: 1px solid var(--yc-border);
	border-radius: 4px;
	background: var(--yc-surface-2);
	accent-color: var(--yc-primary);
	cursor: pointer;
	flex-shrink: 0;
	margin-top: 2px;
}

.auth-check__label a { color: var(--yc-accent); }
.auth-check__label a:hover { color: var(--yc-text); }

/* ── Password strength bar ── */
.auth-strength {
	height: 4px;
	border-radius: 2px;
	background: var(--yc-border);
	margin-top: 6px;
	overflow: hidden;
	position: relative;
}

.auth-strength::after {
	content: '';
	position: absolute;
	left: 0; top: 0; bottom: 0;
	border-radius: 2px;
	width: var(--strength-w, 0%);
	background: var(--strength-color, var(--yc-primary));
	transition: width .3s ease, background .3s ease;
}

.auth-strength-label {
	font-size: 11px;
	margin-top: 4px;
	color: var(--strength-color, var(--yc-muted));
}

/* ── Password match message ── */
.auth-match-msg {
	font-size: 12px;
	margin: 2px 0 0;
	min-height: 16px;
}
.auth-match-msg.ok  { color: var(--yc-new); }
.auth-match-msg.err { color: var(--yc-hot); }

/* ── Full-width button ── */
.btn--full { width: 100%; justify-content: center; margin-top: 4px; }
.btn--sm   { padding: 9px 16px; font-size: 14px; }

/* ── Switch line (Login ↔ Register) ── */
.auth-card__switch {
	text-align: center;
	margin: 20px 0 0;
	font-size: 14px;
	color: var(--yc-muted);
}

.auth-card__switch a { color: var(--yc-accent); font-weight: 600; }
.auth-card__switch a:hover { color: var(--yc-text); }

/* ── Notice (already logged in etc.) ── */
.auth-notice {
	background: var(--yc-surface-2);
	border: 1px solid var(--yc-border);
	border-radius: var(--yc-radius-sm);
	padding: 16px 20px;
	font-size: 15px;
	color: var(--yc-muted);
}

/* ─────────────────────────────────────────────
   Header — avatar + dropdown
───────────────────────────────────────────── */
.auth-avatar-wrap { position: relative; }

.auth-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--yc-primary), var(--yc-accent));
	color: #fff;
	font-family: var(--yc-font-head);
	font-weight: 700;
	font-size: 15px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: box-shadow .2s, border-color .2s;
}

.auth-avatar:hover,
.auth-avatar[aria-expanded="true"] {
	border-color: var(--yc-accent);
	box-shadow: 0 0 0 3px rgba(34, 211, 238, .2);
}

.auth-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	min-width: 200px;
	background: var(--yc-surface-2);
	border: 1px solid var(--yc-border);
	border-radius: var(--yc-radius);
	box-shadow: var(--yc-shadow);
	padding: 8px;
	z-index: 200;
}

.auth-dropdown__name {
	padding: 6px 10px 2px;
	font-weight: 600;
	font-size: 14px;
	color: var(--yc-text);
	margin: 0;
}

.auth-dropdown__email {
	padding: 0 10px 8px;
	font-size: 12px;
	color: var(--yc-muted);
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.auth-dropdown__divider {
	border: none;
	border-top: 1px solid var(--yc-border);
	margin: 4px 0;
}

.auth-dropdown a {
	display: block;
	padding: 9px 10px;
	border-radius: var(--yc-radius-sm);
	font-size: 14px;
	color: var(--yc-muted);
	transition: background .15s, color .15s;
}

.auth-dropdown a:hover {
	background: var(--yc-surface);
	color: var(--yc-text);
}


/* ==========================================
   My Account Dashboard
========================================== */

.yc-account{
    max-width:1000px;
    margin:50px auto;
}

.yc-account-card{
    background:var(--yc-surface);
    border:1px solid var(--yc-border);
    border-radius:var(--yc-radius);
    padding:30px;
    box-shadow:var(--yc-shadow);
}

.yc-account-header{
    display:flex;
    align-items:center;
    gap:25px;
}

.yc-account-avatar{
    width:90px;
    height:90px;
    border-radius:50%;
    background:linear-gradient(
        135deg,
        var(--yc-primary),
        var(--yc-accent)
    );

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:34px;
    font-weight:700;
    color:#fff;

    box-shadow:var(--yc-shadow-glow);
}

.yc-account-meta h2{
    margin:0 0 10px;
    font-size:30px;
}

.yc-account-meta p{
    display:flex;
    align-items:center;
    gap:8px;
    margin:8px 0;
    color:var(--yc-muted);
}

.yc-account-meta .dashicons{
    color:var(--yc-accent);
}

.yc-account-stats{
    margin-top:25px;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

.yc-stat{
    background:var(--yc-surface);
    border:1px solid var(--yc-border);
    border-radius:var(--yc-radius);
    padding:24px;
    text-align:center;
}

.yc-stat:hover{
    border-color:var(--yc-primary);
    box-shadow:var(--yc-shadow-glow);
}

.yc-stat .dashicons{
    color:var(--yc-accent);
    font-size:26px;
    width:26px;
    height:26px;
}

.yc-stat strong{
    display:block;
    margin-top:12px;
    font-size:24px;
    color:var(--yc-text);
}

.yc-stat small{
    color:var(--yc-muted);
}

.yc-account-section{
    margin-top:30px;
}

.yc-section-title{
    margin-bottom:16px;
    font-size:22px;
}

.yc-account-actions{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

.yc-action-card{
    display:flex;
    align-items:center;
    gap:15px;
	text-decoration: none !important;
    padding:18px;

    background:var(--yc-surface);
    border:1px solid var(--yc-border);
    border-radius:var(--yc-radius);

    color:var(--yc-text);

    transition:.25s ease;
}

.yc-action-card:hover{
    transform:translateY(-3px);
    border-color:var(--yc-accent);
    box-shadow:var(--yc-shadow-glow);
    color:var(--yc-text);
}

.yc-action-card .dashicons{
    color:var(--yc-accent);
    font-size:26px;
    width:26px;
    height:26px;
}

.yc-action-card strong{
    display:block;
    margin-bottom:4px;
}

.yc-action-card small{
    color:var(--yc-muted);
}

@media(max-width:768px){

    .yc-account-header{
        flex-direction:column;
        text-align:center;
    }

    .yc-account-stats{
        grid-template-columns:1fr;
    }

    .yc-account-actions{
        grid-template-columns:1fr;
    }
	.auth-card {
    	margin-top: 15px;
	}
}