199 lines
4.3 KiB
CSS
199 lines
4.3 KiB
CSS
/* ==========================================================
|
||
PRODUCT ADDER – Animated Dropdown & Form Styles
|
||
========================================================== */
|
||
|
||
/* ─── Select Wrapper ─── */
|
||
.auth__select__wrap {
|
||
width: min(520px, 100%);
|
||
display: grid;
|
||
gap: 0.4rem;
|
||
justify-self: center;
|
||
margin-top: 0.75rem;
|
||
}
|
||
|
||
.auth__select__label {
|
||
font-size: 0.85rem;
|
||
font-weight: 500;
|
||
color: var(--text-muted);
|
||
transition: color var(--transition-normal);
|
||
}
|
||
|
||
.auth__select__wrap:focus-within .auth__select__label {
|
||
color: var(--color-primary);
|
||
}
|
||
|
||
.auth__select {
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
padding: 0.75rem 2.5rem 0.75rem 0.9rem;
|
||
border: 1px solid var(--border-default);
|
||
border-radius: var(--radius-md);
|
||
background-color: rgba(18, 26, 40, 0.6);
|
||
color: var(--text-primary);
|
||
font-family: var(--font-family);
|
||
font-size: 0.9rem;
|
||
outline: none;
|
||
appearance: none;
|
||
cursor: pointer;
|
||
transition: all var(--transition-smooth);
|
||
background-image:
|
||
linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
|
||
linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
|
||
background-position:
|
||
calc(100% - 18px) calc(50% + 1px),
|
||
calc(100% - 13px) calc(50% + 1px);
|
||
background-size: 5px 5px, 5px 5px;
|
||
background-repeat: no-repeat;
|
||
}
|
||
|
||
.auth__select:focus {
|
||
border-color: var(--color-primary);
|
||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1),
|
||
0 0 20px rgba(59, 130, 246, 0.06);
|
||
background-color: rgba(18, 26, 40, 0.9);
|
||
}
|
||
|
||
.auth__select option {
|
||
background: var(--bg-input);
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
/* ─── Product Adder Layout ─── */
|
||
.auth {
|
||
min-height: 100vh;
|
||
display: grid;
|
||
place-items: start center;
|
||
padding: 2rem 1rem;
|
||
gap: 1rem;
|
||
}
|
||
|
||
.auth__grid {
|
||
width: min(700px, 100%);
|
||
display: grid;
|
||
grid-template-columns: 1fr;
|
||
gap: 1.25rem;
|
||
}
|
||
|
||
.auth__card {
|
||
background: rgba(15, 21, 32, 0.8);
|
||
backdrop-filter: blur(20px);
|
||
-webkit-backdrop-filter: blur(20px);
|
||
border: 1px solid var(--border-subtle);
|
||
border-radius: var(--radius-lg);
|
||
padding: 1.5rem;
|
||
box-shadow: var(--shadow-md);
|
||
animation: fadeInUp 0.5s ease both;
|
||
transition: border-color var(--transition-smooth),
|
||
box-shadow var(--transition-smooth);
|
||
}
|
||
|
||
.auth__card:hover {
|
||
border-color: var(--border-default);
|
||
}
|
||
|
||
.auth__header {
|
||
margin-bottom: 0.75rem;
|
||
}
|
||
|
||
.auth__title {
|
||
margin: 0;
|
||
font-size: 1.15rem;
|
||
font-weight: 700;
|
||
color: var(--text-primary);
|
||
letter-spacing: -0.2px;
|
||
}
|
||
|
||
.auth__form {
|
||
display: grid;
|
||
gap: 0.65rem;
|
||
margin-bottom: 0.75rem;
|
||
}
|
||
|
||
.auth__form label {
|
||
font-size: 0.85rem;
|
||
font-weight: 500;
|
||
color: var(--text-muted);
|
||
margin-top: 0.5rem;
|
||
transition: color var(--transition-normal);
|
||
}
|
||
|
||
.auth__input {
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
padding: 0.7rem 0.9rem;
|
||
border: 1px solid var(--border-default);
|
||
border-radius: var(--radius-md);
|
||
background: rgba(18, 26, 40, 0.6);
|
||
color: var(--text-primary);
|
||
font-family: var(--font-family);
|
||
font-size: 0.9rem;
|
||
outline: none;
|
||
transition: all var(--transition-smooth);
|
||
}
|
||
|
||
.auth__input:focus {
|
||
border-color: var(--color-primary);
|
||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1),
|
||
0 0 20px rgba(59, 130, 246, 0.06);
|
||
background: rgba(18, 26, 40, 0.9);
|
||
transform: translateY(-1px);
|
||
}
|
||
|
||
.auth__input::placeholder {
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
textarea.auth__input {
|
||
min-height: 80px;
|
||
resize: vertical;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.auth__card .auth__form:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
/* ─── Responsive ─── */
|
||
@media (max-width: 720px) {
|
||
.auth {
|
||
padding: 1.25rem 0.75rem;
|
||
}
|
||
|
||
.auth__card {
|
||
padding: 1.25rem;
|
||
}
|
||
|
||
.auth__select {
|
||
font-size: 16px; /* Prevents iOS zoom */
|
||
padding: 0.8rem 2.5rem 0.8rem 0.8rem;
|
||
}
|
||
|
||
.auth__input {
|
||
font-size: 16px; /* Prevents iOS zoom */
|
||
padding: 0.75rem 0.8rem;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 480px) {
|
||
.auth {
|
||
padding: 1rem 0.5rem;
|
||
}
|
||
|
||
.auth__card {
|
||
padding: 1rem;
|
||
border-radius: var(--radius-md);
|
||
}
|
||
|
||
.auth__grid {
|
||
gap: 1rem;
|
||
}
|
||
|
||
.auth__title {
|
||
font-size: 1.05rem;
|
||
}
|
||
|
||
.auth__select__wrap {
|
||
margin-top: 0.5rem;
|
||
}
|
||
}
|