use super::*;
class! {
pub c_pw_gate_wrapper {
display: "flex";
align-items: "center";
justify-content: "center";
min-height: "60vh";
padding: "2rem 1rem";
}
pub c_pw_gate_card {
max-width: "28rem";
width: "100%";
padding: "1.75rem 1.5rem";
border: format!("1px solid {}", "#d0d7de");
border-radius: "0.75rem";
background: "#ffffff";
color: "#1f2328";
box-shadow: "0 1px 3px rgba(0,0,0,0.04)";
}
pub c_pw_gate_title {
margin: "0 0 0.5rem 0";
font-size: "1.25rem";
font-weight: "600";
line-height: "1.3";
}
pub c_pw_gate_hint {
margin: "0 0 1.25rem 0";
font-size: "0.9rem";
line-height: "1.5";
color: "#57606a";
}
pub c_pw_gate_input {
display: "block";
width: "100%";
padding: "0.6rem 0.75rem";
border: format!("1px solid {}", "#d0d7de");
border-radius: "0.375rem";
background: "#ffffff";
color: "#1f2328";
font-size: "1rem";
line-height: "1.4";
transition: "border-color 120ms ease";
:focus {
border-color: "#0969da";
outline: "none";
box-shadow: format!("0 0 0 3px {}", "rgba(9,105,218,0.18)");
}
}
pub c_pw_gate_input_error {
display: "block";
width: "100%";
padding: "0.6rem 0.75rem";
border: format!("1px solid {}", "#cf222e");
border-radius: "0.375rem";
background: "#ffffff";
color: "#1f2328";
font-size: "1rem";
line-height: "1.4";
:focus {
border-color: "#cf222e";
outline: "none";
box-shadow: format!("0 0 0 3px {}", "rgba(207,34,46,0.18)");
}
}
pub c_pw_gate_error {
margin: "0.5rem 0 0 0";
font-size: "0.85rem";
line-height: "1.4";
color: "#cf222e";
}
pub c_pw_gate_submit {
display: "inline-block";
margin-top: "1rem";
padding: "0.6rem 1.1rem";
background: "#0969da";
color: "#ffffff";
border: "none";
border-radius: "0.375rem";
font-size: "0.95rem";
font-weight: "500";
cursor: "pointer";
transition: "background-color 120ms ease";
: hover:not(: disabled) {
background: "#0860c7";
}
:disabled {
opacity: "0.7";
cursor: "not-allowed";
}
}
}